fixes and optimizations

This commit is contained in:
zadam
2020-12-14 22:12:26 +01:00
parent 8b99f065d5
commit c949dcb449
11 changed files with 102 additions and 23 deletions

View File

@@ -76,7 +76,7 @@ class NoteShort {
}
addChild(childNoteId, branchId, sort = true) {
if (!this.children.includes(childNoteId)) {
if (!(childNoteId in this.childToBranch)) {
this.children.push(childNoteId);
}