mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 11:39:01 +01:00 
			
		
		
		
	fix NPE in note map, closes #2877
This commit is contained in:
		
							parent
							
								
									daa36192cc
								
							
						
					
					
						commit
						8905148dbc
					
				| @ -213,7 +213,7 @@ function findExcerpts(sourceNote, referencedNoteId) { | |||||||
| 
 | 
 | ||||||
|         let centerEl = linkEl; |         let centerEl = linkEl; | ||||||
| 
 | 
 | ||||||
|         while (centerEl.tagName !== 'BODY' && centerEl.parentElement.textContent.length <= EXCERPT_CHAR_LIMIT) { |         while (centerEl.tagName !== 'BODY' && centerEl.parentElement?.textContent?.length <= EXCERPT_CHAR_LIMIT) { | ||||||
|             centerEl = centerEl.parentElement; |             centerEl = centerEl.parentElement; | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 zadam
						zadam