mirror of
https://github.com/zadam/trilium.git
synced 2025-01-10 01:00:43 +08:00
fix hideInAutocomplete bug
This commit is contained in:
parent
4a6ff573f8
commit
933cce1b94
1 changed files with 5 additions and 0 deletions
|
@ -59,6 +59,10 @@ function getResults(query) {
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const parentNoteId of parents) {
|
for (const parentNoteId of parents) {
|
||||||
|
if (hideInAutocomplete[parentNoteId]) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
const title = getNoteTitle(noteId, parentNoteId).toLowerCase();
|
const title = getNoteTitle(noteId, parentNoteId).toLowerCase();
|
||||||
const foundTokens = [];
|
const foundTokens = [];
|
||||||
|
|
||||||
|
@ -110,6 +114,7 @@ function search(noteId, tokens, path, results) {
|
||||||
if (parentNoteId === 'root' || hideInAutocomplete[parentNoteId]) {
|
if (parentNoteId === 'root' || hideInAutocomplete[parentNoteId]) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
const title = getNoteTitle(noteId, parentNoteId);
|
const title = getNoteTitle(noteId, parentNoteId);
|
||||||
const foundTokens = [];
|
const foundTokens = [];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue