Problem: negative branch was first

Solution: positive branch is first
This commit is contained in:
Peter Stuifzand 2022-05-01 22:01:27 +02:00
parent e7d2c0e1a9
commit 726f3c944b

View File

@ -203,10 +203,10 @@ function Store(inputData) {
function updateFold(id, open) {
let closedFolds = JSON.parse(localStorage.getItem("closed-folds") || '{}') || {}
if (!open) {
closedFolds[id] = true
} else {
if (open) {
delete closedFolds[id]
} else {
closedFolds[id] = true
}
localStorage.setItem('closed-folds', JSON.stringify(closedFolds))
}