mirror of
https://github.com/apache/superset.git
synced 2024-09-12 00:29:39 -04:00
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;
|
enableEmptyFilter && !inverseSelection && !values?.length;
|
||||||
|
|
||||||
const suffix = inverseSelection && values?.length ? t(' (excluded)') : '';
|
const suffix = inverseSelection && values?.length ? t(' (excluded)') : '';
|
||||||
|
|
||||||
dispatchDataMask({
|
dispatchDataMask({
|
||||||
type: 'filterState',
|
type: 'filterState',
|
||||||
__cache: filterState,
|
__cache: filterState,
|
||||||
@ -290,13 +289,9 @@ export default function PluginFilterSelect(props: PluginFilterSelectProps) {
|
|||||||
updateDataMask,
|
updateDataMask,
|
||||||
data,
|
data,
|
||||||
groupby,
|
groupby,
|
||||||
JSON.stringify(filterState),
|
JSON.stringify(filterState.value),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
useEffect(() => {
|
|
||||||
updateDataMask(filterState.value);
|
|
||||||
}, [JSON.stringify(filterState.value)]);
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
setDataMask(dataMask);
|
setDataMask(dataMask);
|
||||||
}, [JSON.stringify(dataMask)]);
|
}, [JSON.stringify(dataMask)]);
|
||||||
|
Loading…
Reference in New Issue
Block a user