From 305db6f08b6b854e3567d13f22f4aa74a8f0a51f Mon Sep 17 00:00:00 2001 From: LostRuins Concedo <39025047+LostRuins@users.noreply.github.com> Date: Sat, 24 Aug 2024 11:05:00 +0800 Subject: [PATCH] fixed unwanted toggle reset --- index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 0ba673b..8aa46be 100644 --- a/index.html +++ b/index.html @@ -360,8 +360,6 @@ tocDiv.innerText = ''; // Clear previous titles let ascindex = 0; currdbidxs = []; - selecteddb = {}; - countsel(); db.forEach((item, index) => { const titleDiv = document.createElement('div'); @@ -498,6 +496,8 @@ const set = new Set(db.map(item => JSON.stringify(item))); db = Array.from(set).map(item => JSON.parse(item)); } + selecteddb = {}; + countsel(); displayTitles(); contentsDiv.innerText = "Dataset File Loaded\nSelect an item to browse contents."; } @@ -589,4 +589,4 @@