From effa7d9f5822c8b837877b23d4866d6d30de6267 Mon Sep 17 00:00:00 2001 From: Diego Medina Date: Wed, 13 Jul 2022 05:03:23 -0300 Subject: [PATCH] fix(dashboard): Native filter on the dashboard with multiple tabs is displayed as out of scope (#20693) --- superset-frontend/src/dashboard/containers/DashboardPage.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/superset-frontend/src/dashboard/containers/DashboardPage.tsx b/superset-frontend/src/dashboard/containers/DashboardPage.tsx index ef3b4893e..27e17e0f5 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) {