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)

(cherry picked from commit 0b1bc5b)
  • Loading branch information
stephenLYZ authored and sadpandajoe committed Feb 25, 2022
1 parent c3e8626 commit f855e60
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -257,10 +257,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 f855e60

Please sign in to comment.