From 0ddbda60688e997df9eef92b59fc6b41ad0a5bde Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Thu, 16 Nov 2017 15:11:12 -0800 Subject: [PATCH] Fix crash --- src/apps.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps.js b/src/apps.js index 4d962fa3f..4a6133137 100644 --- a/src/apps.js +++ b/src/apps.js @@ -506,7 +506,7 @@ function install(data, auditSource, callback) { sso: sso, debugMode: debugMode, mailboxName: (location ? location : manifest.title.toLowerCase().replace(/[^a-zA-Z0-9]/g, '')) + '.app', - restoreConfig: { backupId: backupId, backupFormat: backupFormat }, + restoreConfig: backupId ? { backupId: backupId, backupFormat: backupFormat } : null, enableBackup: enableBackup, robotsTxt: robotsTxt };