mirror of
https://github.com/zadam/trilium.git
synced 2025-01-15 11:39:37 +08:00
fix missing branch in case of out-of-order clones, closes #2464
This commit is contained in:
parent
ad8d35efe9
commit
f56123b864
1 changed files with 8 additions and 0 deletions
|
@ -365,6 +365,14 @@ async function importZip(taskContext, fileBuffer, importRootNote) {
|
||||||
}
|
}
|
||||||
|
|
||||||
note.setContent(content);
|
note.setContent(content);
|
||||||
|
|
||||||
|
new Branch({
|
||||||
|
noteId,
|
||||||
|
parentNoteId,
|
||||||
|
isExpanded: noteMeta.isExpanded,
|
||||||
|
prefix: noteMeta.prefix,
|
||||||
|
notePosition: noteMeta.notePosition
|
||||||
|
}).save();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
({note} = noteService.createNewNote({
|
({note} = noteService.createNewNote({
|
||||||
|
|
Loading…
Reference in a new issue