Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix creating virtual "none" note in becca, closes #3066
zadam78bca2477dae
diff --git a/src/becca/entities/branch.js b/src/becca/entities/branch.jsindex 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 laterthis.becca.addNote(this.parentNoteId, new Note({noteId: this.parentNoteId}));}