fix: collapse and expand button in charts-of-accounts page (#765)

Fixes: #763
This commit is contained in:
Muskan Khedia
2020-05-14 23:46:28 +05:30
committed by GitHub
parent 3009f21482
commit 7b84e49697
@@ -67,6 +67,7 @@ export class ChartOfAccountsComponent implements AfterViewInit, OnInit {
this.glAccountTreeService.treeDataChange.subscribe((glAccountTreeData: GLAccountNode[]) => {
this.nestedTreeDataSource.data = glAccountTreeData;
this.nestedTreeControl.expand(this.nestedTreeDataSource.data[0]);
this.nestedTreeControl.dataNodes = glAccountTreeData;
});
}