Skip to content

Build your personal knowledge base with Trilium Notes

fix creating virtual "none" note in becca, closes #3066

zadam78bca2477dae
diff --git a/src/becca/entities/branch.js b/src/becca/entities/branch.js
index 1363c1de1c..c66485edfc 100644
--- a/src/becca/entities/branch.js
+++ b/src/becca/entities/branch.js
@@ -107,7 +107,7 @@ class Branch extends AbstractEntity {
/** @returns {Note} */
get parentNote() {
- if (!(this.parentNoteId in this.becca.notes)) {
+ if (!(this.parentNoteId in this.becca.notes) && this.parentNoteId !== 'none') {
// entities can come out of order in sync/import, create skeleton which will be filled later
this.becca.addNote(this.parentNoteId, new Note({noteId: this.parentNoteId}));
}