From c7aeb2160e3f4e81bdc88d5b8633f9a974a271a5 Mon Sep 17 00:00:00 2001 From: Geido <60598000+geido@users.noreply.github.com> Date: Mon, 30 Sep 2024 18:39:15 +0300 Subject: [PATCH] chore(Dashboard): Unblock Global Styles (#30440) --- .../dashboard/containers/DashboardPage.tsx | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/superset-frontend/src/dashboard/containers/DashboardPage.tsx b/superset-frontend/src/dashboard/containers/DashboardPage.tsx index e8c928346..ab2256bce 100644 --- a/superset-frontend/src/dashboard/containers/DashboardPage.tsx +++ b/superset-frontend/src/dashboard/containers/DashboardPage.tsx @@ -192,7 +192,6 @@ export const DashboardPage: FC = ({ idOrSlug }: PageProps) => { }, [addDangerToast, datasets, datasetsApiError, dispatch]); if (error) throw error; // caught in error boundary - if (!readyToRender || !hasDashboardInfoInitiated) return ; return ( <> @@ -205,12 +204,18 @@ export const DashboardPage: FC = ({ idOrSlug }: PageProps) => { chartHeaderStyles(theme), ]} /> - - - - - - + {readyToRender && hasDashboardInfoInitiated ? ( + <> + + + + + + + + ) : ( + + )} ); };