mirror of
https://github.com/zadam/trilium.git
synced 2025-11-12 16:25:51 +01:00
avoid errors on dead backlinks, #3289
This commit is contained in:
@@ -317,7 +317,7 @@ function findExcerpts(sourceNote, referencedNoteId) {
|
||||
function getFilteredBacklinks(note) {
|
||||
return note.getTargetRelations()
|
||||
// search notes have "ancestor" relations which are not interesting
|
||||
.filter(note => note.getNote().type !== 'search');
|
||||
.filter(relation => !!relation.getNote() && relation.getNote().type !== 'search');
|
||||
}
|
||||
|
||||
function getBacklinkCount(req) {
|
||||
|
||||
Reference in New Issue
Block a user