From 72fda89360d924aedf7a26216fd387346254dfd3 Mon Sep 17 00:00:00 2001 From: zadam Date: Tue, 5 Nov 2019 21:47:22 +0100 Subject: [PATCH] fix loading of the search note results --- src/public/javascripts/services/tree_cache.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/public/javascripts/services/tree_cache.js b/src/public/javascripts/services/tree_cache.js index fdaf813c3..02bfcbfe4 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