From 7d8d2a2391a2384fe777a9491ef69b66e4b257ab Mon Sep 17 00:00:00 2001 From: Kamil Gabryjelski Date: Mon, 10 Jan 2022 17:32:31 +0100 Subject: [PATCH] fix(native-filters): apply default value correctly when it's set (#17982) (cherry picked from commit 35f4c3324565fd0c8af92ca99c53bdd036a83c71) --- superset-frontend/src/dataMask/reducer.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/superset-frontend/src/dataMask/reducer.ts b/superset-frontend/src/dataMask/reducer.ts index d87a5442b58c7..60d09f0df3476 100644 --- a/superset-frontend/src/dataMask/reducer.ts +++ b/superset-frontend/src/dataMask/reducer.ts @@ -61,7 +61,7 @@ export function getInitialDataMask( } as DataMaskWithId; } -async function fillNativeFilters( +function fillNativeFilters( filterConfig: FilterConfiguration, mergedDataMask: DataMaskStateWithId, draftDataMask: DataMaskStateWithId, @@ -139,8 +139,6 @@ const dataMaskReducer = produce( action.filterConfig ?? [], cleanState, draft, - // @ts-ignore - action.data.dataMask, action.filters, ); return cleanState;