Skip to content

Commit

Permalink
Fix search page not being cleared properly (FooSoft#2005)
Browse files Browse the repository at this point in the history
  • Loading branch information
toasted-nutbread committed Nov 15, 2021
1 parent c1a51ae commit 81600dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/js/display/display.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand Down

0 comments on commit 81600dd

Please sign in to comment.