You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by kg...@apache.org on 2022/01/10 16:34:02 UTC
[superset] branch master updated: fix(native-filters): apply default value correctly when it's set (#17982)
This is an automated email from the ASF dual-hosted git repository.
kgabryje pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/master by this push:
new 35f4c33 fix(native-filters): apply default value correctly when it's set (#17982)
35f4c33 is described below
commit 35f4c3324565fd0c8af92ca99c53bdd036a83c71
Author: Kamil Gabryjelski <ka...@gmail.com>
AuthorDate: Mon Jan 10 17:32:31 2022 +0100
fix(native-filters): apply default value correctly when it's set (#17982)
---
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 d87a544..60d09f0 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;