From 81600ddee3c092e532f55b2189072fe5eefb4aa3 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sat, 13 Nov 2021 09:29:58 -0500 Subject: Fix search page not being cleared properly (#2005) --- ext/js/display/display.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/js/display/display.js') diff --git a/ext/js/display/display.js b/ext/js/display/display.js index ba7ebd91..caa1ce10 100644 --- a/ext/js/display/display.js +++ b/ext/js/display/display.js @@ -552,7 +552,7 @@ class Display extends EventDispatcher { // Prepare const urlSearchParams = new URLSearchParams(location.search); let type = urlSearchParams.get('type'); - if (type === null) { type = 'terms'; } + if (type === null && urlSearchParams.get('query') !== null) { type = 'terms'; } const fullVisible = urlSearchParams.get('full-visible'); this._queryParserVisibleOverride = (fullVisible === null ? null : (fullVisible !== 'false')); -- cgit v1.2.3