mirror of https://github.com/apache/superset.git
fix: from other dashboard filters will confict 'requiredFirst' option then maxium render loop.
This commit is contained in:
parent
357745f418
commit
823df18ba5
|
@ -269,7 +269,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) {
|
||||
|
|
Loading…
Reference in New Issue