mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
fix empty search query after previous non-empty search
(cherry picked from commit cf34198d54
)
This commit is contained in:

committed by
github-actions[bot]
![github-actions[bot]](/assets/img/avatar_default.png)
parent
c4aae39315
commit
751cf27fe2
@@ -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
|
||||
}));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user