Skip to content

Commit

Permalink
fix(native-filters): apply default value correctly when it's set (apa…
Browse files Browse the repository at this point in the history
…che#17982)

(cherry picked from commit 35f4c33)
  • Loading branch information
kgabryje authored and rosemarie-chiu committed Jan 10, 2022
1 parent c6950f8 commit 7d8d2a2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions superset-frontend/src/dataMask/reducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export function getInitialDataMask(
} as DataMaskWithId;
}

async function fillNativeFilters(
function fillNativeFilters(
filterConfig: FilterConfiguration,
mergedDataMask: DataMaskStateWithId,
draftDataMask: DataMaskStateWithId,
Expand Down Expand Up @@ -139,8 +139,6 @@ const dataMaskReducer = produce(
action.filterConfig ?? [],
cleanState,
draft,
// @ts-ignore
action.data.dataMask,
action.filters,
);
return cleanState;
Expand Down

0 comments on commit 7d8d2a2

Please sign in to comment.