Skip to content

Commit

Permalink
Merge pull request #493 from anapolg/master
Browse files Browse the repository at this point in the history
fix(*): check when to show message of no graphs
  • Loading branch information
anapolg committed Dec 20, 2019
2 parents d8260ff + 58dbd6f commit 448145c
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 448145c

Please sign in to comment.