From ec91d362906885ede7e7105560eb7ef1a077568c Mon Sep 17 00:00:00 2001 From: Remko Date: Tue, 24 Oct 2023 13:07:16 +0200 Subject: [PATCH] hotfix filters --- pwa/src/services/filtersToQueryParams.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}`; })