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

This commit is contained in:
zadam 2022-08-16 23:38:11 +02:00
parent 28f620d51d
commit 78bca2477d

View file

@ -107,7 +107,7 @@ class Branch extends AbstractEntity {
/** @returns {Note} */ /** @returns {Note} */
get parentNote() { 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 // 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})); this.becca.addNote(this.parentNoteId, new Note({noteId: this.parentNoteId}));
} }