fix hidden notes appearing in note map, closes #2403

This commit is contained in:
zadam
2021-12-04 13:45:15 +01:00
parent 89c04e6b6b
commit 26bcfe5160
2 changed files with 17 additions and 0 deletions

View File

@@ -42,6 +42,11 @@ function getNeighbors(note, depth) {
}
const targetNote = relation.getTargetNote();
if (targetNote.hasLabel('excludeFromNoteMap')) {
continue;
}
retNoteIds.push(targetNote.noteId);
for (const noteId of getNeighbors(targetNote, depth - 1)) {
@@ -56,6 +61,11 @@ function getNeighbors(note, depth) {
}
const sourceNote = relation.getNote();
if (sourceNote.hasLabel('excludeFromNoteMap')) {
continue;
}
retNoteIds.push(sourceNote.noteId);
for (const noteId of getNeighbors(sourceNote, depth - 1)) {