Skip to content

Commit

Permalink
fixed unwanted toggle reset
Browse files Browse the repository at this point in the history
  • Loading branch information
LostRuins authored Aug 24, 2024
1 parent b81e262 commit 305db6f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -360,8 +360,6 @@
tocDiv.innerText = ''; // Clear previous titles
let ascindex = 0;
currdbidxs = [];
selecteddb = {};
countsel();

db.forEach((item, index) => {
const titleDiv = document.createElement('div');
Expand Down Expand Up @@ -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.";
}
Expand Down Expand Up @@ -589,4 +589,4 @@ <h3 style="margin-top: 4px; margin-bottom: 4px; text-align: right;"><button id="
</div>
</body>

</html>
</html>

0 comments on commit 305db6f

Please sign in to comment.