fixed "create note after" position issue

This commit is contained in:
zadam
2021-03-06 23:53:10 +01:00
parent ca77211b38
commit 88147f7a0a
2 changed files with 31 additions and 7 deletions

View File

@@ -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, () => {