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
  • Loading branch information
kgabryje authored Jan 10, 2022
1 parent 7964465 commit 35f4c33
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 35f4c33

Please sign in to comment.