Browse Source
Merge pull request #4756 from Dmitriymush/fix/entity-hierarchy-widget
[PROD-520]Bug-fix/entity hierarchy widget entity node level
pull/4772/head
Igor Kulikov
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
ui-ngx/src/app/modules/home/components/widget/lib/entities-hierarchy-widget.component.ts
|
|
|
@ -443,7 +443,7 @@ export class EntitiesHierarchyWidgetComponent extends PageComponent implements O |
|
|
|
const dataPageData = subscription.dataPages[0]; |
|
|
|
const childNodes: HierarchyNavTreeNode[] = []; |
|
|
|
datasourcesPageData.data.forEach((childDatasource, index) => { |
|
|
|
childNodes.push(this.datasourceToNode(childDatasource as HierarchyNodeDatasource, dataPageData.data[index])); |
|
|
|
childNodes.push(this.datasourceToNode(childDatasource as HierarchyNodeDatasource, dataPageData.data[index], nodeCtx)); |
|
|
|
}); |
|
|
|
nodeCtx.childrenNodesLoaded = true; |
|
|
|
childrenNodesLoadCb(this.prepareNodes(childNodes)); |
|
|
|
|