From 079509cd5b17aedbcec514ee33d63433ead993c4 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Fri, 17 May 2024 21:17:12 -0300 Subject: client: don't restore ghost search results after query cleared --- src/static/js/client.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/static') diff --git a/src/static/js/client.js b/src/static/js/client.js index 7f5990b9..e8de0472 100644 --- a/src/static/js/client.js +++ b/src/static/js/client.js @@ -3836,12 +3836,11 @@ function initializeSidebarSearchState() { if (session.activeQuery) { info.searchInput.value = session.activeQuery; - } - - if (session.repeatQueryOnReload) { - activateSidebarSearch(session.activeQuery); - } else if (session.activeQueryResults) { - showSidebarSearchResults(JSON.parse(session.activeQueryResults)); + if (session.repeatQueryOnReload) { + activateSidebarSearch(session.activeQuery); + } else if (session.activeQueryResults) { + showSidebarSearchResults(JSON.parse(session.activeQueryResults)); + } } } -- cgit 1.3.0-6-gf8a5