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 and eschutho committed Aug 17, 2023
1 parent cf00f38 commit 4be3fa2
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,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 @@ -289,13 +288,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 4be3fa2

Please sign in to comment.