mirror of
https://github.com/apache/superset.git
synced 2024-09-12 08:39:45 -04:00
Fix for when there are no dashboards (#8815)
This commit is contained in:
parent
1d3c93ccb2
commit
ec43609820
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user