From 78bca2477dae30c13efc6a1ce5f04c65ade16d56 Mon Sep 17 00:00:00 2001 From: zadam Date: Tue, 16 Aug 2022 23:38:11 +0200 Subject: [PATCH] fix creating virtual "none" note in becca, closes #3066 --- src/becca/entities/branch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/becca/entities/branch.js b/src/becca/entities/branch.js index 1363c1de1..c66485edf 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})); }