Skip to content

Commit fa31f6b

Browse files
authored
Merge pull request #4581 from DSpace/backport-4536-to-dspace-9_x
[Port dspace-9_x] Fix empty search query after previous non-empty search
2 parents 17f17a1 + d7310f2 commit fa31f6b

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)