From 2d54cf8495773d9ec1536aecac899cfb18f422a7 Mon Sep 17 00:00:00 2001 From: Stephen Liu <750188453@qq.com> Date: Tue, 18 Jan 2022 16:51:51 +0800 Subject: [PATCH] fix(dashboard): scope of nativefilter not update (#18048) --- superset-frontend/src/dashboard/actions/hydrate.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/superset-frontend/src/dashboard/actions/hydrate.js b/superset-frontend/src/dashboard/actions/hydrate.js index e78f46bbf5a40..060a9f6426895 100644 --- a/superset-frontend/src/dashboard/actions/hydrate.js +++ b/superset-frontend/src/dashboard/actions/hydrate.js @@ -70,7 +70,7 @@ export const hydrateDashboard = dataMaskApplied, ) => (dispatch, getState) => { - const { user, common } = getState(); + const { user, common, dashboardState } = getState(); const { metadata } = dashboardData; const regularUrlParams = extractUrlParams('regular'); @@ -406,7 +406,7 @@ export const hydrateDashboard = maxUndoHistoryExceeded: false, lastModifiedTime: dashboardData.changed_on, isRefreshing: false, - activeTabs: [], + activeTabs: dashboardState?.activeTabs || [], filterboxMigrationState, }, dashboardLayout,