code should not rely on fixed branch IDs since they can change after move

This commit is contained in:
zadam
2022-12-23 20:40:58 +01:00
parent e5e0add1a2
commit 5c4db266a4
11 changed files with 29 additions and 35 deletions

View File

@@ -166,7 +166,6 @@ function createNewNote(params) {
note.setContent(params.content);
branch = new Branch({
branchId: params.branchId,
noteId: note.noteId,
parentNoteId: params.parentNoteId,
notePosition: params.notePosition !== undefined ? params.notePosition : getNewNotePosition(params.parentNoteId),