Skip to content

Commit

Permalink
use toggle class
Browse files Browse the repository at this point in the history
  • Loading branch information
grafixeyehero authored and thornbill committed Aug 15, 2024
1 parent 22947b7 commit 9fd3b18
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/components/filterdialog/filterIndicator.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,7 @@ export function setFilterStatus(page, hasFilters) {
}

if (indicatorElem) {
if (hasFilters) {
indicatorElem.classList.remove('hide');
} else {
indicatorElem.classList.add('hide');
}
indicatorElem.classList.toggle('hide', !hasFilters);
}
}
}

0 comments on commit 9fd3b18

Please sign in to comment.