mirror of
https://github.com/zadam/trilium.git
synced 2025-10-31 18:36:30 +01:00
fixed "create note after" position issue
This commit is contained in:
@@ -153,6 +153,19 @@ eventService.subscribe([eventService.ENTITY_CHANGED, eventService.ENTITY_DELETED
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (entityName === 'note_reordering') {
|
||||
const parentNoteIds = new Set();
|
||||
|
||||
for (const branchId in entity) {
|
||||
const branch = noteCache.branches[branchId];
|
||||
|
||||
if (branch) {
|
||||
branch.notePosition = entity[branchId];
|
||||
|
||||
parentNoteIds.add(branch.parentNoteId);
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
eventService.subscribe(eventService.ENTER_PROTECTED_SESSION, () => {
|
||||
|
||||
Reference in New Issue
Block a user