From 3b64563f3f9427e1d8f6f5f670f05e19bf9cb705 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 e78f46bbf5..060a9f6426 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,