Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
update correctly "multi-parent" node status, fixes #1688
zadamcb6d35236c98
diff --git a/src/public/app/widgets/component.js b/src/public/app/widgets/component.jsindex c255a3eb98..ac1b8e0adc 100644--- a/src/public/app/widgets/component.js+++ b/src/public/app/widgets/component.js@@ -92,7 +92,7 @@ export default class Component {}if (glob.isDev) {- await utils.timeLimit(promise, 3000, `Time limit failed on ${this.constructor.name} with ${fun.name}`);+ await utils.timeLimit(promise, 20000, `Time limit failed on ${this.constructor.name} with ${fun.name}`);}else {// cheaper and in non-dev the extra reporting is lost anyway through reloaddiff --git a/src/public/app/widgets/note_tree.js b/src/public/app/widgets/note_tree.jsindex 37d7c5b8b5..75e34d9048 100644--- a/src/public/app/widgets/note_tree.js+++ b/src/public/app/widgets/note_tree.js@@ -1030,6 +1030,9 @@ export default class NoteTreeWidget extends TabAwareWidget {}for (const branch of loadResults.getBranches()) {+ // adding noteId itself to update all potential clones+ noteIdsToUpdate.add(branch.noteId);+for (const node of this.getNodesByBranchId(branch.branchId)) {if (branch.isDeleted) {if (node.isActive()) {@@ -1048,9 +1051,6 @@ export default class NoteTreeWidget extends TabAwareWidget {noteIdsToUpdate.add(branch.parentNoteId);}- else {- noteIdsToUpdate.add(branch.noteId);- }}if (!branch.isDeleted) {