Fix for when there are no dashboards (#8815)

This commit is contained in:
Beto Dealmeida 2019-12-12 11:15:40 -08:00 committed by GitHub
parent 1d3c93ccb2
commit ec43609820
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ class DashboardTable extends React.PureComponent {
constructor(props) {
super(props);
this.state = {
dashboards: [],
dashboards: null,
};
}
@ -55,7 +55,7 @@ class DashboardTable extends React.PureComponent {
}
render() {
if (this.state.dashboards.length > 0) {
if (this.state.dashboards !== null) {
return (
<Table
className="table"