Fix query being set to null when an empty search page is opened (#1988)
This commit is contained in:
parent
b3d38fce47
commit
11f7591a7f
@ -832,7 +832,8 @@ class Display extends EventDispatcher {
|
||||
const wildcardsEnabled = (urlSearchParams.get('wildcards') !== 'off');
|
||||
|
||||
// Set query
|
||||
const query = urlSearchParams.get('query');
|
||||
let query = urlSearchParams.get('query');
|
||||
if (query === null) { query = ''; }
|
||||
let queryFull = urlSearchParams.get('full');
|
||||
queryFull = (queryFull !== null ? queryFull : query);
|
||||
let queryOffset = urlSearchParams.get('offset');
|
||||
|
Loading…
Reference in New Issue
Block a user