fix recent note dialog for deleted notes

This commit is contained in:
zadam 2020-01-03 09:04:38 +01:00
parent d0c655f66a
commit 1d3608b7bf

View File

@ -35,6 +35,7 @@ async function createNoteLink(notePath, options = {}) {
if (showNotePath) {
notePath = await treeService.resolveNotePath(notePath);
if (notePath) {
const noteIds = notePath.split("/");
noteIds.pop(); // remove last element
@ -44,6 +45,7 @@ async function createNoteLink(notePath, options = {}) {
$container.append($("<small>").text(" (" + await treeUtils.getNotePathTitle(parentNotePath) + ")"));
}
}
}
return $container;
}