Skip to content

Commit

Permalink
fix(FilterGroup): fix incorrect counter value
Browse files Browse the repository at this point in the history
  • Loading branch information
Paulo Lagoá committed Jun 1, 2023
1 parent 552fb03 commit aec797e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/core/src/components/FilterGroup/Counter/Counter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ export const HvFilterGroupCounter = ({

let groupsCounter = 0;
appliedFilters
?.flat()
?.filter((elem) => elem !== undefined)
.filter((elem) => elem !== undefined)
.forEach((fg, i) => {
groupsCounter += getExistingFiltersById(i, filterValues, filterOptions);
});
Expand Down

0 comments on commit aec797e

Please sign in to comment.