From d437fc7bdd2246c8b4ec09bad8abd4ef7b85fcf3 Mon Sep 17 00:00:00 2001 From: Fredrik Strand Oseberg Date: Wed, 19 Mar 2025 10:50:54 +0100 Subject: [PATCH] fix: s is possibly null (#9578) Fixes an issue where s was possibly null and Unleash would not build after turning on strictNullChecks. --- src/lib/features/feature-search/feature-search-store.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/features/feature-search/feature-search-store.ts b/src/lib/features/feature-search/feature-search-store.ts index e7dbda8daa..0c54e51255 100644 --- a/src/lib/features/feature-search/feature-search-store.ts +++ b/src/lib/features/feature-search/feature-search-store.ts @@ -711,7 +711,7 @@ const applyMultiQueryParams = ( (Array.isArray(fields) ? val!.split(/:(.+)/).filter(Boolean) : [val] - ).map((s) => s.trim()), + ).map((s) => s?.trim() || ''), ); const baseSubQuery = createBaseQuery(values);