From 3d829fc3c838358dd8c798ecaeefd34c502edca0 Mon Sep 17 00:00:00 2001 From: Phillip Kelley-Dotson Date: Mon, 10 Jan 2022 18:34:28 -0800 Subject: [PATCH] fix: dashboard reload crash (#17992) * fix dashboard reload * add more strict case --- superset-frontend/src/dashboard/components/DashboardGrid.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/superset-frontend/src/dashboard/components/DashboardGrid.jsx b/superset-frontend/src/dashboard/components/DashboardGrid.jsx index ad03859fa4da5..f12ffcb9cd422 100644 --- a/superset-frontend/src/dashboard/components/DashboardGrid.jsx +++ b/superset-frontend/src/dashboard/components/DashboardGrid.jsx @@ -158,7 +158,7 @@ class DashboardGrid extends React.PureComponent { )} - {gridComponent.children.map((id, index) => ( + {gridComponent?.children?.map((id, index) => ( 0 && ( + {editMode && gridComponent?.children?.length > 0 && (