Skip to content

Commit

Permalink
fix(*): check when to show message of no graphs
Browse files Browse the repository at this point in the history
  • Loading branch information
anapolg committed Dec 20, 2019
1 parent 534ee70 commit 58dbd6f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/app/dashboard/dashboard.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit 58dbd6f

Please sign in to comment.