mirror of
https://github.com/zadam/trilium.git
synced 2025-11-16 02:05:53 +01:00
extra null relation checks in notemap
This commit is contained in:
@@ -48,7 +48,7 @@ function getNeighbors(note, depth) {
|
|||||||
|
|
||||||
const targetNote = relation.getTargetNote();
|
const targetNote = relation.getTargetNote();
|
||||||
|
|
||||||
if (targetNote.hasLabel('excludeFromNoteMap')) {
|
if (!targetNote || targetNote.hasLabel('excludeFromNoteMap')) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -67,7 +67,7 @@ function getNeighbors(note, depth) {
|
|||||||
|
|
||||||
const sourceNote = relation.getNote();
|
const sourceNote = relation.getNote();
|
||||||
|
|
||||||
if (sourceNote.hasLabel('excludeFromNoteMap')) {
|
if (!sourceNote || sourceNote.hasLabel('excludeFromNoteMap')) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user