Skip to content

Commit

Permalink
Merge pull request #135 from ConductionNL/hot-fix
Browse files Browse the repository at this point in the history
hotfix filters
  • Loading branch information
remko48 authored Oct 24, 2023
2 parents 0e1449c + ec91d36 commit ac6782b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pwa/src/services/filtersToQueryParams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const filtersToQueryParams = (filters: any): string => {

const formattedValue = Array.isArray(value)
? value.map((v: string) => v.replace(/\s+/g, "_")).join(`&${key}[]=`)
: (value as string).replace(/\s+/g, "_");
: (value as string);

return `${Array.isArray(value) ? `${key}[]` : key}=${formattedValue}`;
})
Expand Down

0 comments on commit ac6782b

Please sign in to comment.