Skip to content

Commit d7310f2

Browse files
jesielvianagithub-actions[bot]
authored andcommitted
fix empty search query after previous non-empty search
(cherry picked from commit cf34198)
1 parent 17f17a1 commit d7310f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/core/shared/search/search-configuration.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ export class SearchConfigurationService implements OnDestroy {
183183
*/
184184
getCurrentQuery(defaultQuery: string) {
185185
return this.routeService.getQueryParameterValue('query').pipe(map((query) => {
186-
return query || defaultQuery;
186+
return query !== null ? query : defaultQuery; // Allow querying when the value is empty
187187
}));
188188
}
189189

0 commit comments

Comments
 (0)