mirror of
https://github.com/zadam/trilium.git
synced 2025-11-13 16:55:50 +01:00
fixes and optimizations
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user