Skip to content

Commit

Permalink
Remove unspecified filter on clear
Browse files Browse the repository at this point in the history
The clear button clears the table filter field of
all selected filters. It will however not remove
an unspecified filter, meaning the dropdown
menu. This patch makes is so that so that those
are cleared as well, making sure the filter area
is really clear.
  • Loading branch information
Arnei committed Jan 15, 2025
1 parent 9511948 commit 18dfabf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/shared/TableFilters.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ const TableFilters = ({
// Clear state
setStartDate(undefined);
setEndDate(undefined);
setFilterSelector(false);

dispatch(removeTextFilter());
dispatch(removeSelectedFilter());
Expand Down

0 comments on commit 18dfabf

Please sign in to comment.