mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +01:00
load initial tree from note cache
This commit is contained in:
@@ -20,11 +20,11 @@ function load() {
|
||||
new Note(noteCache, row);
|
||||
}
|
||||
|
||||
for (const row of sql.iterateRows(`SELECT branchId, noteId, parentNoteId, prefix FROM branches WHERE isDeleted = 0`, [])) {
|
||||
for (const row of sql.iterateRows(`SELECT branchId, noteId, parentNoteId, prefix, notePosition, isExpanded FROM branches WHERE isDeleted = 0`, [])) {
|
||||
new Branch(noteCache, row);
|
||||
}
|
||||
|
||||
for (const row of sql.iterateRows(`SELECT attributeId, noteId, type, name, value, isInheritable FROM attributes WHERE isDeleted = 0`, [])) {
|
||||
for (const row of sql.iterateRows(`SELECT attributeId, noteId, type, name, value, isInheritable, position FROM attributes WHERE isDeleted = 0`, [])) {
|
||||
new Attribute(noteCache, row);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user