Skip to content

Commit

Permalink
fix: 272 - allow deselect age on volunteers page
Browse files Browse the repository at this point in the history
  • Loading branch information
radulescuandrew committed Jul 16, 2024
1 parent 229c2b8 commit 558e5d6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions frontend/src/pages/Volunteers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,9 @@ const ActiveVolunteersTableHeader = [
minWidth: '9rem',
selector: (row: IVolunteer) =>
row.profile?.department || row?.profile?.role
? `${row.profile?.role?.name || ''}${row.profile?.role && row.profile?.department ? '\n' : ''
}${row.profile?.department?.name || ''}`
? `${row.profile?.role?.name || ''}${
row.profile?.role && row.profile?.department ? '\n' : ''
}${row.profile?.department?.name || ''}`
: '-',
},
{
Expand Down Expand Up @@ -511,6 +512,7 @@ const Volunteers = ({ query, setQuery }: VolunteersProps) => {
options={AgeRangeOptions}
onChange={onAgeRangeChange}
defaultValue={query?.age}
allowDeselect
/>
</DataTableFilters>
<Card>
Expand Down

0 comments on commit 558e5d6

Please sign in to comment.