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
azivnerb4e6245f7b16
diff --git a/public/javascripts/note_editor.js b/public/javascripts/note_editor.jsindex 6716544c9b..53593f90ea 100644--- a/public/javascripts/note_editor.js+++ b/public/javascripts/note_editor.js@@ -66,7 +66,7 @@ const noteEditor = (function() {note.detail.note_text = contents;if (!note.detail.is_protected) {- const linkRegexp = /<a[^>]+?href="[^"]*app#([A-Za-z0-9]{22})"[^>]*?>[^<]+?<\/a>/g;+ const linkRegexp = /<a[^>]+?href="[^"]*app#([A-Za-z0-9/]+)"[^>]*?>[^<]+?<\/a>/g;let match;while (match = linkRegexp.exec(contents)) {diff --git a/public/javascripts/note_tree.js b/public/javascripts/note_tree.jsindex d90229e079..92a7971695 100644--- a/public/javascripts/note_tree.js+++ b/public/javascripts/note_tree.js@@ -180,6 +180,11 @@ const noteTree = (function() {if (childNoteId !== null) {const parents = childToParents[childNoteId];+ if (!parents) {+ console.error("No parents found for " + childNoteId);+ return;+ }+if (parentNoteId === null || !parents.includes(parentNoteId)) {console.log("Did not find parent " + parentNoteId + " for child " + childNoteId);