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
fix consistency checks
zadam3bafc396fc88
diff --git a/src/services/consistency_checks.js b/src/services/consistency_checks.jsindex 4c0cfee7c7..b0b57166c4 100644--- a/src/services/consistency_checks.js+++ b/src/services/consistency_checks.js@@ -51,7 +51,7 @@ class ConsistencyChecks {childToParents[childNoteId].push(parentNoteId);}- function checkTreeCycle(noteId, path) {+ const checkTreeCycle = (noteId, path) => {if (noteId === 'root') {return;}@@ -75,7 +75,7 @@ class ConsistencyChecks {checkTreeCycle(parentNoteId, newPath);}}- }+ };const noteIds = Object.keys(childToParents);