fix empty search query after previous non-empty search

(cherry picked from commit cf34198d54)
This commit is contained in:
Jesiel Viana
2025-07-07 15:10:03 -03:00
committed by github-actions[bot]
parent 17f17a190b
commit d7310f2db6

View File

@@ -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
}));
}