mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
fix(native-filters): Default value not shown in native filters (#18963)
* fix(native-filters): Default value not shown in native filters * Reuse stringified datamask
This commit is contained in:
committed by
GitHub
parent
c4e3c45b3c
commit
2072225a86
@@ -289,6 +289,11 @@ const FilterBar: React.FC<FiltersBarProps> = ({
|
||||
}, [JSON.stringify(filters), JSON.stringify(previousFilters)]);
|
||||
|
||||
const dataMaskAppliedText = JSON.stringify(dataMaskApplied);
|
||||
|
||||
useEffect(() => {
|
||||
setDataMaskSelected(() => dataMaskApplied);
|
||||
}, [dataMaskAppliedText, setDataMaskSelected]);
|
||||
|
||||
useEffect(() => {
|
||||
publishDataMask(history, dashboardId, updateKey, dataMaskApplied, tabId);
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
|
||||
Reference in New Issue
Block a user