Skip to content

Commit

Permalink
Filter Resets to Default Options After Dropdown Selection, Notificati…
Browse files Browse the repository at this point in the history
…ons Not Displayed on Update
  • Loading branch information
Fontilllas committed Nov 18, 2024
1 parent 34d0340 commit 41ace7a
Showing 1 changed file with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,7 @@ const NotificationFilterDropdown: FC<Props> = (props): JSX.Element => {
focus:border-primary focus:ring-1 focus:ring-primary
`}
id="filterStatus"
defaultValue={
router.query.status !== undefined
? router.query.status
: STATUS_OPTIONS.ALL.toLowerCase()
}
value={filters.status}
onChange={(e) => handleStatusChange(e)}
>
{filterStatusOptions(statusOptions)}
Expand All @@ -115,11 +111,7 @@ const NotificationFilterDropdown: FC<Props> = (props): JSX.Element => {
focus:border-primary focus:ring-1 focus:ring-primary
`}
id="filterType"
defaultValue={
router.query.type !== undefined
? router.query.type
: TYPE_OPTIONS.ALL.toLowerCase()
}
value={filters.type}
onChange={(e) => handleTypeChange(e)}
>
{filterTypeOptions(typeOptions)}
Expand Down

0 comments on commit 41ace7a

Please sign in to comment.