diff options
author | Rachitha Ramappa <rachitha.ramappa@att.com> | 2020-07-02 12:56:08 +0530 |
---|---|---|
committer | Muni Mohan Kunchi <munmohan@att.com> | 2020-07-17 16:48:53 -0400 |
commit | a36db1a18f3d5117517313ba035e2384e00cc0a7 (patch) | |
tree | b3424bdf4d6c6479ef30251a281eb1339f4d9af9 /portal-FE-common/src | |
parent | d856cbc5d725836a07776b0f20f06bbbda7b5412 (diff) |
Portal Non-Gui application onboarding changes
Change-Id: Ib878398995e1d7a407d44ea6113c05aab2dd1625
Issue-ID: PORTAL-935
Signed-off-by: Muni Mohan Kunchi <munmohan@att.com>
Diffstat (limited to 'portal-FE-common/src')
-rw-r--r-- | portal-FE-common/src/app/pages/dashboard-widget-catalog/dashboard-widget-catalog.component.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/portal-FE-common/src/app/pages/dashboard-widget-catalog/dashboard-widget-catalog.component.ts b/portal-FE-common/src/app/pages/dashboard-widget-catalog/dashboard-widget-catalog.component.ts index dbdd2928..14e5773c 100644 --- a/portal-FE-common/src/app/pages/dashboard-widget-catalog/dashboard-widget-catalog.component.ts +++ b/portal-FE-common/src/app/pages/dashboard-widget-catalog/dashboard-widget-catalog.component.ts @@ -82,7 +82,8 @@ export class DashboardWidgetCatalogComponent implements OnInit { //console.log("What is coming from backend" + JSON.parse(data)); this.widgetCatalogData = data; console.log(this.widgetCatalogData); - for (let entry of this.widgetCatalogData) { + if(this.widgetCatalogData != null){ + for (let entry of this.widgetCatalogData) { if (entry[1] == 'Events' || entry[1] == 'News' || entry[1] == 'Resources') { if(entry[4] === 'S' || entry[4] === null) { @@ -96,6 +97,7 @@ export class DashboardWidgetCatalogComponent implements OnInit { } } } + } }); } }); |