Skip to content

Build your personal knowledge base with Trilium Notes

fix hideInAutocomplete bug

azivner933cce1b9495
diff --git a/src/services/autocomplete.js b/src/services/autocomplete.js
index 667e8ff3ac..95ef24eea1 100644
--- a/src/services/autocomplete.js
+++ b/src/services/autocomplete.js
@@ -59,6 +59,10 @@ function getResults(query) {
}
for (const parentNoteId of parents) {
+ if (hideInAutocomplete[parentNoteId]) {
+ continue;
+ }
+
const title = getNoteTitle(noteId, parentNoteId).toLowerCase();
const foundTokens = [];
@@ -110,6 +114,7 @@ function search(noteId, tokens, path, results) {
if (parentNoteId === 'root' || hideInAutocomplete[parentNoteId]) {
continue;
}
+
const title = getNoteTitle(noteId, parentNoteId);
const foundTokens = [];