fix possible js error
This commit is contained in:
@@ -209,9 +209,13 @@ class ListTreeRecordItemView extends View {
|
||||
checkLastChildren() {
|
||||
Espo.Ajax
|
||||
.getRequest(this.collection.entityType + '/action/lastChildrenIdList', {parentId: this.model.id})
|
||||
.then(idList =>{
|
||||
.then(idList => {
|
||||
const childrenView = this.getChildrenView();
|
||||
|
||||
if (!childrenView) {
|
||||
return;
|
||||
}
|
||||
|
||||
idList.forEach(id => {
|
||||
const model = this.model.get('childCollection').get(id);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user