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 recent note dialog for deleted notes
zadam1d3608b7bf85
diff --git a/src/public/javascripts/services/link.js b/src/public/javascripts/services/link.jsindex c1f74bf9a1..22af09098d 100644--- a/src/public/javascripts/services/link.js+++ b/src/public/javascripts/services/link.js@@ -35,13 +35,15 @@ async function createNoteLink(notePath, options = {}) {if (showNotePath) {notePath = await treeService.resolveNotePath(notePath);- const noteIds = notePath.split("/");- noteIds.pop(); // remove last element+ if (notePath) {+ const noteIds = notePath.split("/");+ noteIds.pop(); // remove last element- const parentNotePath = noteIds.join("/").trim();+ const parentNotePath = noteIds.join("/").trim();- if (parentNotePath) {- $container.append($("<small>").text(" (" + await treeUtils.getNotePathTitle(parentNotePath) + ")"));+ if (parentNotePath) {+ $container.append($("<small>").text(" (" + await treeUtils.getNotePathTitle(parentNotePath) + ")"));+ }}}