« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/static/js/client.js11
1 files changed, 5 insertions, 6 deletions
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));
+    }
   }
 }