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

View File

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