EspoCRM – Open Source CRM Application
PHP calendarcontactscrmcrm-platformcrm-systemcustomer-portalcustomer-supportcustomizabledocumentsemail-marketingkanbanleadsopen-sourcephpplatformsales-automationsingle-page-applicationsupport
fix possible js error
Yuri Kuznetsovc46cf700797b
diff --git a/client/src/views/record/list-tree-item.js b/client/src/views/record/list-tree-item.jsindex 7b4654b9cb..b5ba9f9ce7 100644--- a/client/src/views/record/list-tree-item.js+++ b/client/src/views/record/list-tree-item.js@@ -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);