Skip to content

Commit 93277ce

Browse files
committed
Fix: Remove numFilters count on dropdown
1 parent 6d4a8a4 commit 93277ce

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

packages/components/src/components/hds/filter-bar/filters-dropdown.hbs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
<D.ToggleButton
1515
@icon="filter"
1616
@text={{hds-t "hds.components.filter-bar.filters-dropdown.toggle-button" default="Filters"}}
17-
@count={{this.numFilters}}
1817
@color="secondary"
1918
@size="small"
2019
/>

packages/components/src/components/hds/filter-bar/filters-dropdown.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -92,21 +92,6 @@ export default class HdsFilterBarFiltersDropdown extends Component<
9292
}
9393
}
9494

95-
get numFilters(): number {
96-
let numFilters = 0;
97-
Object.keys(this.internalFilters).forEach((key) => {
98-
const filter = this.internalFilters[key];
99-
if (filter) {
100-
if (Array.isArray(filter.data)) {
101-
numFilters += filter.data.length;
102-
} else {
103-
numFilters += 1;
104-
}
105-
}
106-
});
107-
return numFilters;
108-
}
109-
11095
get classNames(): string {
11196
const classes = ['hds-filter-bar__filters-dropdown'];
11297

0 commit comments

Comments
 (0)