Fix query being set to null when an empty search page is opened (#1988)

This commit is contained in:
toasted-nutbread 2021-10-14 21:16:40 -04:00 committed by GitHub
parent b3d38fce47
commit 11f7591a7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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');