Fix search page not being cleared properly (#2005)

This commit is contained in:
toasted-nutbread 2021-11-13 09:29:58 -05:00 committed by GitHub
parent c1a51ae41f
commit 657292733d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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