mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
extra null relation checks in notemap
This commit is contained in:
parent
3e4a9f63fa
commit
5a3c50d9fb
@ -48,7 +48,7 @@ function getNeighbors(note, depth) {
|
||||
|
||||
const targetNote = relation.getTargetNote();
|
||||
|
||||
if (targetNote.hasLabel('excludeFromNoteMap')) {
|
||||
if (!targetNote || targetNote.hasLabel('excludeFromNoteMap')) {
|
||||
continue;
|
||||
}
|
||||
|
||||
@ -67,7 +67,7 @@ function getNeighbors(note, depth) {
|
||||
|
||||
const sourceNote = relation.getNote();
|
||||
|
||||
if (sourceNote.hasLabel('excludeFromNoteMap')) {
|
||||
if (!sourceNote || sourceNote.hasLabel('excludeFromNoteMap')) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user