From f56123b8641faf5e15b9a51f01180c659697dac1 Mon Sep 17 00:00:00 2001 From: zadam Date: Sun, 26 Dec 2021 23:31:54 +0100 Subject: [PATCH] fix missing branch in case of out-of-order clones, closes #2464 --- src/services/import/zip.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/services/import/zip.js b/src/services/import/zip.js index 7d68c2776..91a805222 100644 --- a/src/services/import/zip.js +++ b/src/services/import/zip.js @@ -365,6 +365,14 @@ async function importZip(taskContext, fileBuffer, importRootNote) { } note.setContent(content); + + new Branch({ + noteId, + parentNoteId, + isExpanded: noteMeta.isExpanded, + prefix: noteMeta.prefix, + notePosition: noteMeta.notePosition + }).save(); } else { ({note} = noteService.createNewNote({