search now supports searching / ordering by note size

This commit is contained in:
zadam
2021-01-22 22:20:17 +01:00
parent 480aec1667
commit 872e81fe1f
9 changed files with 93 additions and 20 deletions

View File

@@ -172,9 +172,6 @@ class TreeCache {
throw new Error(`Search note ${note.noteId} failed: ${searchResultNoteIds}`);
}
// force to load all the notes at once instead of one by one
await this.getNotes(searchResultNoteIds);
// reset all the virtual branches from old search results
if (note.noteId in treeCache.notes) {
treeCache.notes[note.noteId].children = [];