From 891260dd4e34b87fff10bd61bec096a2521fdb82 Mon Sep 17 00:00:00 2001 From: benweet Date: Sun, 9 Feb 2014 17:49:37 +0000 Subject: [PATCH] Fixed import of empty file from Dropbox. Fixes #305 --- public/res/helpers/dropboxHelper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/res/helpers/dropboxHelper.js b/public/res/helpers/dropboxHelper.js index 5385f387..3a41f3a6 100644 --- a/public/res/helpers/dropboxHelper.js +++ b/public/res/helpers/dropboxHelper.js @@ -232,7 +232,7 @@ define([ return; } client.readFile(file.path, function(error, data) { - if(data) { + if(_.isString(data)) { file.content = data; objects.shift(); task.chain(recursiveDownloadContent);