mirror of https://github.com/apache/superset.git
fix(native-filters): apply default value correctly when it's set (#17982)
This commit is contained in:
parent
79644651da
commit
35f4c33245
|
@ -61,7 +61,7 @@ export function getInitialDataMask(
|
||||||
} as DataMaskWithId;
|
} as DataMaskWithId;
|
||||||
}
|
}
|
||||||
|
|
||||||
async function fillNativeFilters(
|
function fillNativeFilters(
|
||||||
filterConfig: FilterConfiguration,
|
filterConfig: FilterConfiguration,
|
||||||
mergedDataMask: DataMaskStateWithId,
|
mergedDataMask: DataMaskStateWithId,
|
||||||
draftDataMask: DataMaskStateWithId,
|
draftDataMask: DataMaskStateWithId,
|
||||||
|
@ -139,8 +139,6 @@ const dataMaskReducer = produce(
|
||||||
action.filterConfig ?? [],
|
action.filterConfig ?? [],
|
||||||
cleanState,
|
cleanState,
|
||||||
draft,
|
draft,
|
||||||
// @ts-ignore
|
|
||||||
action.data.dataMask,
|
|
||||||
action.filters,
|
action.filters,
|
||||||
);
|
);
|
||||||
return cleanState;
|
return cleanState;
|
||||||
|
|
Loading…
Reference in New Issue