mirror of
https://github.com/zadam/trilium.git
synced 2025-10-26 07:46:30 +01:00
fix missing branch in case of out-of-order clones, closes #2464
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user