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 (apache#18695)
  • Loading branch information
stephenLYZ authored Feb 25, 2022
1 parent 2bd8d3b commit 0b1bc5b
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 0b1bc5b

Please sign in to comment.