Skip to content

Commit

Permalink
Make sure that selected is an array
Browse files Browse the repository at this point in the history
  • Loading branch information
RunarVestmann committed Jun 5, 2024
1 parent 1c6527f commit 99bbd7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/web/screens/Search/Search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ const Search: Screen<CategoryProps> = ({
{
id: 'category',
label: n('categories', 'Þjónustuflokkar'),
selected: state.query.category ?? [],
selected: stringToArray(state.query.category),
singleOption: true,
filters: (countResults?.tagCounts ?? [])
.filter((x) => x.value.trim() && x.type === 'category')
Expand All @@ -451,7 +451,7 @@ const Search: Screen<CategoryProps> = ({
{
id: 'organization',
label: n('organizations', 'Opinberir aðilar'),
selected: state.query.organization ?? [],
selected: stringToArray(state.query.organization),
singleOption: true,
filters: (countResults?.tagCounts ?? [])
.filter((x) => x.value.trim() && x.type === 'organization')
Expand Down

0 comments on commit 99bbd7c

Please sign in to comment.