From 5209a586a912af38dc03e16070ee709d128e1566 Mon Sep 17 00:00:00 2001 From: Nicolas Margulies Date: Wed, 8 Nov 2023 17:10:05 +0100 Subject: [PATCH] Fixed const being redeclared when script is reevaluated --- apps/note/static/note/js/consos.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/note/static/note/js/consos.js b/apps/note/static/note/js/consos.js index 199a0a19..9ee543f7 100644 --- a/apps/note/static/note/js/consos.js +++ b/apps/note/static/note/js/consos.js @@ -259,8 +259,8 @@ function consume (source, source_alias, dest, quantity, amount, reason, type, ca }) } -const searchbar = document.getElementById("search-input") -const search_results = document.getElementById("search-results") +var searchbar = document.getElementById("search-input") +var search_results = document.getElementById("search-results") var old_pattern = null; var firstMatch = null;