Skip to content

Commit cf34198

Browse files
committed
fix empty search query after previous non-empty search
1 parent 277154b commit cf34198

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)