mirror of
https://github.com/zadam/trilium.git
synced 2025-11-13 16:55:50 +01:00
exported links to "named" notes should be preserved upon import
This commit is contained in:
@@ -170,10 +170,15 @@ async function loadReferenceLinkTitle(noteId, $el) {
|
||||
title = note.isDeleted ? `${note.title} (deleted)` : note.title;
|
||||
}
|
||||
|
||||
$el.addClass(note.getColorClass());
|
||||
if (note) {
|
||||
$el.addClass(note.getColorClass());
|
||||
}
|
||||
|
||||
$el.text(title);
|
||||
|
||||
$el.prepend($("<span>").addClass(note.getIcon()));
|
||||
if (note) {
|
||||
$el.prepend($("<span>").addClass(note.getIcon()));
|
||||
}
|
||||
}
|
||||
|
||||
$(document).on('click', "a", goToLink);
|
||||
|
||||
Reference in New Issue
Block a user