Reload tree after sync

This commit is contained in:
Magnus Åhall 2025-01-22 21:35:37 +01:00
parent 02a8e10d11
commit 0bd5d08edf
3 changed files with 36 additions and 6 deletions

View file

@ -109,6 +109,9 @@ export class NodeStore {
getRequest.onerror = (event) => reject(event.target.error)
})
}//}}}
purgeCache() {//{{{
this.nodes = {}
}//}}}
node(uuid, dataIfUndefined, newLevel) {//{{{
let n = this.nodes[uuid]
@ -229,7 +232,6 @@ export class NodeStore {
const nodeData = event.target.result[i]
const node = this.node(nodeData.UUID, nodeData, newLevel)
nodes.push(node)
}
resolve(nodes)
}