From 7b84e49697bd1da507aa6acf7019b01aed986879 Mon Sep 17 00:00:00 2001 From: Muskan Khedia <36980003+muskankhedia@users.noreply.github.com> Date: Thu, 14 May 2020 23:46:28 +0530 Subject: [PATCH] fix: collapse and expand button in charts-of-accounts page (#765) Fixes: #763 --- .../accounting/chart-of-accounts/chart-of-accounts.component.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/accounting/chart-of-accounts/chart-of-accounts.component.ts b/src/app/accounting/chart-of-accounts/chart-of-accounts.component.ts index 12c6d9c8c..b744c8906 100644 --- a/src/app/accounting/chart-of-accounts/chart-of-accounts.component.ts +++ b/src/app/accounting/chart-of-accounts/chart-of-accounts.component.ts @@ -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; }); }