Skip to content

Commit

Permalink
fix(native-filter): fix required filters of a dashboard won't load pr…
Browse files Browse the repository at this point in the history
…operly (#18695)

(cherry picked from commit 0b1bc5b)
  • Loading branch information
stephenLYZ authored and villebro committed Apr 3, 2022
1 parent 77c8987 commit ce61dbc
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -262,10 +262,13 @@ const FilterBar: React.FC<FiltersBarProps> = ({
if (previousFilters) {
const updates = {};
Object.values(filters).forEach(currentFilter => {
const previousFilter = previousFilters?.[currentFilter.id];
if (!previousFilter) {
return;
}
const currentType = currentFilter.filterType;
const currentTargets = currentFilter.targets;
const currentDataMask = currentFilter.defaultDataMask;
const previousFilter = previousFilters?.[currentFilter.id];
const previousType = previousFilter?.filterType;
const previousTargets = previousFilter?.targets;
const previousDataMask = previousFilter?.defaultDataMask;
Expand Down

0 comments on commit ce61dbc

Please sign in to comment.