mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
avoid errors on dead backlinks, #3289
This commit is contained in:
parent
89e319c7a2
commit
4961d9bb89
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user