mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +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;
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user