mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 03:16:11 +01:00
added getAllNotePaths, fixes #708
This commit is contained in:
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user