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; } }