From fe7a0bd50d5d329b2c42750054dafe158c3c44a8 Mon Sep 17 00:00:00 2001 From: stephenLYZ <750188453@qq.com> Date: Fri, 14 Jan 2022 23:25:28 +0800 Subject: [PATCH] fix(dashboard): scope of nativefilter not update --- 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,