mirror of
https://github.com/zadam/trilium.git
synced 2025-11-05 04:45:47 +01:00
resort relationships in tree cache after note reordering
This commit is contained in:
@@ -72,6 +72,10 @@ class NoteShort {
|
||||
|
||||
this.childToBranch[childNoteId] = branchId;
|
||||
|
||||
this.sortChildren();
|
||||
}
|
||||
|
||||
sortChildren() {
|
||||
const branchIdPos = {};
|
||||
|
||||
for (const branchId of Object.values(this.childToBranch)) {
|
||||
|
||||
Reference in New Issue
Block a user