From 513748836e074776242b87beb8e82fbc8e4d0ab4 Mon Sep 17 00:00:00 2001 From: azivner Date: Fri, 17 Aug 2018 10:06:52 +0200 Subject: [PATCH] note autocomplete and full text search should be able to find notes by noteId --- src/services/note_cache.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/services/note_cache.js b/src/services/note_cache.js index 802ab751f..027514d52 100644 --- a/src/services/note_cache.js +++ b/src/services/note_cache.js @@ -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;