From 99fe9c5657f1097bb55ce8a1ff446f0b8446d13c Mon Sep 17 00:00:00 2001 From: John Bodley <4567245+john-bodley@users.noreply.github.com> Date: Fri, 2 Jul 2021 04:49:04 -0700 Subject: [PATCH] fix: Utilizing dashboard native filter feature flag (#15519) Co-authored-by: John Bodley --- superset-frontend/src/dashboard/actions/hydrate.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/superset-frontend/src/dashboard/actions/hydrate.js b/superset-frontend/src/dashboard/actions/hydrate.js index c860e2966a..21b2ffa48d 100644 --- a/superset-frontend/src/dashboard/actions/hydrate.js +++ b/superset-frontend/src/dashboard/actions/hydrate.js @@ -288,7 +288,8 @@ export const hydrateDashboard = (dashboardData, chartData, datasourcesData) => ( } metadata.show_native_filters = - dashboardData?.metadata?.show_native_filters ?? true; + dashboardData?.metadata?.show_native_filters ?? + isFeatureEnabled(FeatureFlag.DASHBOARD_NATIVE_FILTERS); if (isFeatureEnabled(FeatureFlag.DASHBOARD_CROSS_FILTERS)) { // If user just added cross filter to dashboard it's not saving it scope on server,