Skip to content

Build your personal knowledge base with Trilium Notes

correct a typo in #1820 fix (#1824)

WPum903e6b7cccbc
diff --git a/src/routes/api/link_map.js b/src/routes/api/link_map.js
index ee87e61fd4..c73e7011b7 100644
--- a/src/routes/api/link_map.js
+++ b/src/routes/api/link_map.js
@@ -25,7 +25,7 @@ function getRelations(noteIds) {
LEFT JOIN branches ON branches.parentNoteId = rel.noteId AND branches.noteId = rel.value AND branches.isDeleted = 0
WHERE (rel.noteId IN (???) OR rel.value IN (???))
AND rel.type = 'relation'
- AND name NOT IN ('imageLink', 'relationMapLink', 'template')
+ AND rel.name NOT IN ('imageLink', 'relationMapLink', 'template')
AND rel.isDeleted = 0
AND rel.noteId != ''
AND rel.value != ''