Skip to content

Commit

Permalink
fix: Dashboard not loading with default first value in filter (#23512)
Browse files Browse the repository at this point in the history
  • Loading branch information
geido authored Mar 29, 2023
1 parent 9fbfd1c commit 4220d32
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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)]);
Expand Down

0 comments on commit 4220d32

Please sign in to comment.