From 2ffca9f3c6007a5edba07686eba0e92dd7d65e73 Mon Sep 17 00:00:00 2001 From: FaizanMohammed326 Date: Fri, 15 Sep 2023 11:11:25 +0530 Subject: [PATCH] dashboard metrics issue resolved --- src/app/views/dashboard/dashboard.component.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/app/views/dashboard/dashboard.component.ts b/src/app/views/dashboard/dashboard.component.ts index 61a4803b..a5ba6a4f 100644 --- a/src/app/views/dashboard/dashboard.component.ts +++ b/src/app/views/dashboard/dashboard.component.ts @@ -119,15 +119,16 @@ export class DashboardComponent implements OnInit { menuToDisplay.navigationURL = menuData[i].navigationUrl; menuToDisplay.icon = menuData[i].imageUrl; menuToDisplay.tooltip = menuData[i].tooltip; - let results: any = this.getDashboardMetrics(configFiles[menuData[i].programID], this.rbacDetails) + let results: any = await this.getDashboardMetrics(configFiles[menuData[i].programID], this.rbacDetails) promises.push(results) menuToDisplay.metrics = results this.dashboardMenu.push(menuToDisplay); } } - Promise.allSettled(promises).then(() => { - this.spinner.hide(); - }) + // Promise.allSettled(promises).then(() => { + // this.spinner.hide(); + // }) + this.spinner.hide(); } getDashboardMetrics(programConfig: any, rbacDetails: any) {