sharing improvements

This commit is contained in:
zadam
2021-12-23 20:54:48 +01:00
parent 972f2f40bf
commit 47845930f4
4 changed files with 23 additions and 7 deletions

View File

@@ -58,7 +58,10 @@ class Branch extends AbstractEntity {
}
init() {
this.becca.branches[this.branchId] = this;
if (this.branchId) {
this.becca.branches[this.branchId] = this;
}
this.becca.childParentToBranch[`${this.noteId}-${this.parentNoteId}`] = this;
if (this.branchId === 'root') {