From 834e1f7253186922d2b5df2f6a01c34f7c2d7fe4 Mon Sep 17 00:00:00 2001 From: zadam Date: Sun, 17 Nov 2019 10:24:06 +0100 Subject: [PATCH] fix activating tab when app was closed last time with "new tab" --- src/public/javascripts/services/tree_cache.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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} */