From 58dbd6fcc9c8c68824d844a5ce5129bfefed172c Mon Sep 17 00:00:00 2001 From: Ana Date: Fri, 20 Dec 2019 14:52:21 +0100 Subject: [PATCH] fix(*): check when to show message of no graphs --- src/app/dashboard/dashboard.component.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/app/dashboard/dashboard.component.ts b/src/app/dashboard/dashboard.component.ts index 8ac9cf19..30b02d7f 100644 --- a/src/app/dashboard/dashboard.component.ts +++ b/src/app/dashboard/dashboard.component.ts @@ -118,8 +118,6 @@ export class DashboardComponent implements OnInit { } canShowGraphsError() { - return this.vimData ? - !this.loading && Object.keys(this.vimData).length - : !this.loading; + return (this.vimData && Object.keys(this.vimData).length && !this.loading) ? false : true; } }