summaryrefslogtreecommitdiff
path: root/ext/js/display
diff options
context:
space:
mode:
Diffstat (limited to 'ext/js/display')
-rw-r--r--ext/js/display/display.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/js/display/display.js b/ext/js/display/display.js
index ed708b3a..882d69c9 100644
--- a/ext/js/display/display.js
+++ b/ext/js/display/display.js
@@ -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');