load search result only on explicit action (expand node, execute search), #1759

This commit is contained in:
zadam
2021-03-18 21:05:43 +01:00
parent 59e8cb8c8b
commit 6edc6e2825
3 changed files with 39 additions and 35 deletions

View File

@@ -472,7 +472,7 @@ export default class NoteTreeWidget extends TabAwareWidget {
return;
}
data.result = treeCache.reloadNotes([noteId]).then(() => {
data.result = treeCache.loadSearchNote(noteId).then(() => {
const note = treeCache.getNoteFromCache(noteId);
let childNoteIds = note.getChildNoteIds();