Skip to content
This repository was archived by the owner on Feb 25, 2023. It is now read-only.

Commit 81600dd

Browse files
Fix search page not being cleared properly (#2005)
1 parent c1a51ae commit 81600dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/js/display/display.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ class Display extends EventDispatcher {
552552
// Prepare
553553
const urlSearchParams = new URLSearchParams(location.search);
554554
let type = urlSearchParams.get('type');
555-
if (type === null) { type = 'terms'; }
555+
if (type === null && urlSearchParams.get('query') !== null) { type = 'terms'; }
556556

557557
const fullVisible = urlSearchParams.get('full-visible');
558558
this._queryParserVisibleOverride = (fullVisible === null ? null : (fullVisible !== 'false'));

0 commit comments

Comments
 (0)