mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 05:28:59 +01: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