Skip to content

Commit 5a08173

Browse files
authored
Merge pull request #4579 from DSpace/backport-4536-to-dspace-7_x
[Port dspace-7_x] Fix empty search query after previous non-empty search
2 parents da99511 + be8def0 commit 5a08173

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
@@ -153,7 +153,7 @@ export class SearchConfigurationService implements OnDestroy {
153153
*/
154154
getCurrentQuery(defaultQuery: string) {
155155
return this.routeService.getQueryParameterValue('query').pipe(map((query) => {
156-
return query || defaultQuery;
156+
return query !== null ? query : defaultQuery; // Allow querying when the value is empty
157157
}));
158158
}
159159

0 commit comments

Comments
 (0)