From d1e46be8adf6cb43aa0dfdaf0035a6b46e287d66 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Tue, 27 Oct 2015 12:41:13 -0700 Subject: [PATCH] Do not set dns config if null --- webadmin/src/js/setup.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/webadmin/src/js/setup.js b/webadmin/src/js/setup.js index 52376efc0..245613843 100644 --- a/webadmin/src/js/setup.js +++ b/webadmin/src/js/setup.js @@ -218,6 +218,11 @@ app.controller('FinishController', ['$scope', '$location', 'Wizard', 'Client', f Client.changeCloudronAvatar($scope.wizard.avatarBlob, function (error) { if (error) return console.error('Unable to set avatar.', error); + if ($scope.wizard.dnsConfig === null) { + window.location.href = '/'; + return; + } + Client.setDnsConfig($scope.wizard.dnsConfig, function (error) { if (error) return console.error('Unable to set dns config.', error);