Removed old code, fixed root node showing up in tree

This commit is contained in:
Magnus Åhall 2024-12-19 22:44:10 +01:00
parent 41952df764
commit 147dc12e99
2 changed files with 8 additions and 37 deletions

View file

@ -94,6 +94,7 @@ export class NodeStore {
Name: 'Notes2',
Content: 'Hello, World!',
Updated: new Date().toISOString(),
ParentUUID: '',
})
putRequest.onsuccess = (event) => {
resolve(event.target.result)
@ -353,7 +354,6 @@ export class NodeStore {
})
}//}}}
async getNodeAncestry(node, accumulated) {//{{{
console.log('blaha')
return new Promise((resolve, reject) => {
const nodeParentIndex = this.db
.transaction('nodes', 'readonly')