Skip to content

Commit

Permalink
fix(filters): flatten object filter values
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenlago99 committed Dec 23, 2024
1 parent 09791ac commit 608136d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/components/designSystem/Filters/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,13 @@ export const formatFiltersForCreditNotesQuery = (searchParams: URLSearchParams)

const value = FILTER_VALUE_MAP[key]?.(current[1]) || current[1]

if (typeof value === 'object') {
return {
...acc,
...value,
}
}

return {
...acc,
[key]: value,
Expand Down

0 comments on commit 608136d

Please sign in to comment.