From c4ca019c8e960467eb0a33ced44893636beaf045 Mon Sep 17 00:00:00 2001 From: Joey Payne Date: Fri, 18 Mar 2016 07:15:09 -0600 Subject: [PATCH] Fix async empty notebook infinite loading --- app/utils.jsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/utils.jsx b/app/utils.jsx index 6bc7ecc..fa4f0ae 100644 --- a/app/utils.jsx +++ b/app/utils.jsx @@ -118,6 +118,9 @@ export function loadNotesAsync(notebook, callback){ var notes = [] glob(noteGlob, (err, notePaths) => { + if (notePaths.length == 0){ + callback(notes) + } for(var i=0; i {