Skip to content

Commit

Permalink
Merge pull request #308 from code4romania/fix/305
Browse files Browse the repository at this point in the history
fix: [305] reset filters on volunteers page
  • Loading branch information
birloiflorian authored Jul 19, 2024
2 parents e5460ae + 330aa2a commit 64a8a24
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion frontend/src/pages/Volunteers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,17 @@ const Volunteers = ({ query, setQuery }: VolunteersProps) => {
setBranch(undefined);
setDepartment(undefined);
setRole(undefined);
setQuery({ volunteerStatus: query.volunteerStatus }, 'replaceIn');
setQuery(
{
volunteerStatus: query.volunteerStatus,
location: undefined,
branch: undefined,
department: undefined,
role: undefined,
age: undefined,
createdOnEnd: undefined,
createdOnStart: undefined
}, 'replaceIn');
};

const onExport = async () => {
Expand Down

0 comments on commit 64a8a24

Please sign in to comment.