This commit is contained in:
the-last 2024-05-05 02:12:10 -03:00 committed by GitHub
commit 8632c39f37
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -260,7 +260,10 @@ export default function PluginFilterSelect(props: PluginFilterSelectProps) {
: null;
// firstItem[0] !== undefined for a case when groupby changed but new data still not fetched
// TODO: still need repopulate default value in config modal when column changed
if (firstItem?.[0] !== undefined) {
const searchParams = new URLSearchParams(window.location.search);
const searchFilters = searchParams.get('filters');
// avoid 'filters' of url to confict update with 'requiredFirst'; fix refresh again and again..
if (firstItem?.[0] !== undefined && !searchFilters) {
updateDataMask(firstItem);
}
} else if (isDisabled) {