diff --git a/superset-frontend/src/dashboard/containers/DashboardPage.tsx b/superset-frontend/src/dashboard/containers/DashboardPage.tsx index ef3b4893e31a6..27e17e0f511c8 100644 --- a/superset-frontend/src/dashboard/containers/DashboardPage.tsx +++ b/superset-frontend/src/dashboard/containers/DashboardPage.tsx @@ -186,7 +186,9 @@ export const DashboardPage: FC = ({ idOrSlug }: PageProps) => { const isOldRison = getUrlParam(URL_PARAMS.nativeFilters); let dataMask = nativeFilterKeyValue || {}; - let activeTabs: string[] | undefined = []; + // activeTabs is initialized with undefined so that it doesn't override + // the currently stored value when hydrating + let activeTabs: string[] | undefined; if (permalinkKey) { const permalinkValue = await getPermalinkValue(permalinkKey); if (permalinkValue) {