note autocomplete and full text search should be able to find notes by noteId

This commit is contained in:
azivner 2018-08-17 10:06:52 +02:00
parent 427ce3972e
commit 513748836e

View File

@ -50,6 +50,12 @@ function findNotes(query) {
}
for (const noteId of noteIds) {
// autocomplete should be able to find notes by their noteIds as well (only leafs)
if (noteId === query) {
search(noteId, [], [], results);
continue;
}
// for leaf note it doesn't matter if "archived" label inheritable or not
if (noteId in archived) {
continue;