diff --git a/superset-frontend/src/dashboard/components/nativeFilters/FilterBar/index.tsx b/superset-frontend/src/dashboard/components/nativeFilters/FilterBar/index.tsx index df6b26ab1d622..5d3ab5637a406 100644 --- a/superset-frontend/src/dashboard/components/nativeFilters/FilterBar/index.tsx +++ b/superset-frontend/src/dashboard/components/nativeFilters/FilterBar/index.tsx @@ -234,13 +234,13 @@ const FilterBar: React.FC = ({ if (previousFilters) { const updates = {}; Object.values(filters).forEach(currentFilter => { - const currentType = currentFilter.filterType; - const currentTargets = currentFilter.targets; - const currentDataMask = currentFilter.defaultDataMask; const previousFilter = previousFilters?.[currentFilter.id]; if (!previousFilter) { return; } + const currentType = currentFilter.filterType; + const currentTargets = currentFilter.targets; + const currentDataMask = currentFilter.defaultDataMask; const previousType = previousFilter?.filterType; const previousTargets = previousFilter?.targets; const previousDataMask = previousFilter?.defaultDataMask;