mirror of
https://github.com/apache/superset.git
synced 2024-09-06 13:57:40 -04:00
fix: extra query in Dashboard when native filter enabled (#14770)
This commit is contained in:
parent
bee6f3ba8a
commit
8484ee653f
@ -187,8 +187,11 @@ const FilterBar: React.FC<FiltersBarProps> = ({
|
||||
setIsFilterSetChanged(tab !== TabIds.AllFilters);
|
||||
setDataMaskSelected(draft => {
|
||||
const children = cascadeChildren[filter.id] || [];
|
||||
// force instant updating on initialization or for parent filters
|
||||
if (filter.isInstant || children.length > 0) {
|
||||
// force instant updating on initialization or for parent filters when dataMaskSelected has filter
|
||||
if (
|
||||
dataMaskSelected[filter.id] &&
|
||||
(filter.isInstant || children.length > 0)
|
||||
) {
|
||||
dispatch(updateDataMask(filter.id, dataMask));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user