Skip to content

Build your personal knowledge base with Trilium Notes

fix loading of the search note results

zadam72fda89360d9
diff --git a/src/public/javascripts/services/tree_cache.js b/src/public/javascripts/services/tree_cache.js
index fdaf813c32..02bfcbfe44 100644
--- a/src/public/javascripts/services/tree_cache.js
+++ b/src/public/javascripts/services/tree_cache.js
@@ -105,12 +105,6 @@ class TreeCache {
for (const note of resp.notes) {
if (note.type === 'search') {
- const someExpanded = resp.branches.find(b => b.noteId === note.noteId && b.isExpanded);
-
- if (!someExpanded) {
- continue;
- }
-
const searchResults = await server.get('search-note/' + note.noteId);
// force to load all the notes at once instead of one by one