diff --git a/src/public/javascripts/services/tree_cache.js b/src/public/javascripts/services/tree_cache.js index e3d1cf350..fade66e5a 100644 --- a/src/public/javascripts/services/tree_cache.js +++ b/src/public/javascripts/services/tree_cache.js @@ -148,7 +148,7 @@ class TreeCache { else { return this.notes[noteId]; } - }).filter(note => note !== null); + }).filter(note => !!note); } /** @return {Promise} */