From d7310f2db6708903c89cf34857f003cc8e3decd5 Mon Sep 17 00:00:00 2001 From: Jesiel Viana Date: Mon, 7 Jul 2025 15:10:03 -0300 Subject: [PATCH] fix empty search query after previous non-empty search (cherry picked from commit cf34198d54550c29fb3f5bb58bc1070cc5383778) --- src/app/core/shared/search/search-configuration.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/core/shared/search/search-configuration.service.ts b/src/app/core/shared/search/search-configuration.service.ts index b9e0207cc3..9b675d6b93 100644 --- a/src/app/core/shared/search/search-configuration.service.ts +++ b/src/app/core/shared/search/search-configuration.service.ts @@ -183,7 +183,7 @@ export class SearchConfigurationService implements OnDestroy { */ getCurrentQuery(defaultQuery: string) { return this.routeService.getQueryParameterValue('query').pipe(map((query) => { - return query || defaultQuery; + return query !== null ? query : defaultQuery; // Allow querying when the value is empty })); }