mirror of
https://github.com/zadam/trilium.git
synced 2025-02-22 14:03:36 +08:00
extra null relation checks in notemap
This commit is contained in:
parent
3e4a9f63fa
commit
5a3c50d9fb
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue