Fix async empty notebook infinite loading

This commit is contained in:
Joey Payne 2016-03-18 07:15:09 -06:00
commit c4ca019c8e

View file

@ -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<notePaths.length; i++){
var notePath = notePaths[i]
loadNoteAsync(notePath, (note) => {