added getAllNotePaths, fixes #708

This commit is contained in:
zadam
2019-11-16 19:07:32 +01:00
parent 95d0ad1cad
commit 1838f097e5
20 changed files with 662 additions and 290 deletions

View File

@@ -107,6 +107,10 @@ class TreeCache {
if (note.type === 'search') {
const searchResults = await server.get('search-note/' + note.noteId);
if (!searchResults) {
throw new Error(`Search note ${note.noteId} failed.`);
}
// force to load all the notes at once instead of one by one
await treeCache.getNotes(searchResults.map(res => res.noteId));