mirror of https://github.com/apache/superset.git
fix: Dashboard not loading with default first value in filter (#23512)
This commit is contained in:
parent
9fbfd1c1d8
commit
4220d32f3d
|
@ -129,7 +129,6 @@ export default function PluginFilterSelect(props: PluginFilterSelectProps) {
|
|||
enableEmptyFilter && !inverseSelection && !values?.length;
|
||||
|
||||
const suffix = inverseSelection && values?.length ? t(' (excluded)') : '';
|
||||
|
||||
dispatchDataMask({
|
||||
type: 'filterState',
|
||||
__cache: filterState,
|
||||
|
@ -290,13 +289,9 @@ export default function PluginFilterSelect(props: PluginFilterSelectProps) {
|
|||
updateDataMask,
|
||||
data,
|
||||
groupby,
|
||||
JSON.stringify(filterState),
|
||||
JSON.stringify(filterState.value),
|
||||
]);
|
||||
|
||||
useEffect(() => {
|
||||
updateDataMask(filterState.value);
|
||||
}, [JSON.stringify(filterState.value)]);
|
||||
|
||||
useEffect(() => {
|
||||
setDataMask(dataMask);
|
||||
}, [JSON.stringify(dataMask)]);
|
||||
|
|
Loading…
Reference in New Issue