mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +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();
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user