diff --git a/pwa/src/services/filtersToQueryParams.ts b/pwa/src/services/filtersToQueryParams.ts index 8a15c6f3..ec2df5f6 100644 --- a/pwa/src/services/filtersToQueryParams.ts +++ b/pwa/src/services/filtersToQueryParams.ts @@ -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}`; })