From fa8840d25ec52a96fddb0bf9f21c79d379f8b5cc Mon Sep 17 00:00:00 2001 From: Akbar Rahman Date: Wed, 13 Nov 2024 12:14:19 +0000 Subject: [PATCH] Update indexsearch.js --- js/indexsearch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/indexsearch.js b/js/indexsearch.js index 60e2b08..046dc54 100644 --- a/js/indexsearch.js +++ b/js/indexsearch.js @@ -30,7 +30,7 @@ function updateResults() { console.log("updating results") resultsDiv.innerHTML = '' if (searchBar.value) results = fuse.search(searchBar.value, { limit: RESULTS_MAX }).map(r => r.item) - else results = data + else results = search_data results.forEach(r => { wrapper = document.createElement('li')