fix hideInAutocomplete bug

This commit is contained in:
azivner 2018-05-26 10:50:13 -04:00
parent 4a6ff573f8
commit 933cce1b94

View file

@ -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 = [];