From ec4360982040ff3240a7c9db6bb8535c20ad9464 Mon Sep 17 00:00:00 2001 From: Beto Dealmeida Date: Thu, 12 Dec 2019 11:15:40 -0800 Subject: [PATCH] Fix for when there are no dashboards (#8815) --- superset/assets/src/welcome/DashboardTable.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/superset/assets/src/welcome/DashboardTable.jsx b/superset/assets/src/welcome/DashboardTable.jsx index 1e898a845a..a2102a022f 100644 --- a/superset/assets/src/welcome/DashboardTable.jsx +++ b/superset/assets/src/welcome/DashboardTable.jsx @@ -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 (