diff --git a/superset-frontend/src/dashboard/components/DashboardBuilder/DashboardBuilder.tsx b/superset-frontend/src/dashboard/components/DashboardBuilder/DashboardBuilder.tsx index dffa7bc3b2..ea0354334a 100644 --- a/superset-frontend/src/dashboard/components/DashboardBuilder/DashboardBuilder.tsx +++ b/superset-frontend/src/dashboard/components/DashboardBuilder/DashboardBuilder.tsx @@ -153,11 +153,12 @@ const StyledDiv = styled.div` `; // @z-index-above-dashboard-charts + 1 = 11 -const FiltersPanel = styled.div<{ width: number }>` +const FiltersPanel = styled.div<{ width: number; hidden: boolean }>` grid-column: 1; grid-row: 1 / span 2; z-index: 11; width: ${({ width }) => width}px; + ${({ hidden }) => hidden && `display: none;`} `; const StickyPanel = styled.div<{ width: number }>` @@ -654,6 +655,7 @@ const DashboardBuilder: FC = () => { return (