Do not set dns config if null
This commit is contained in:
@@ -218,6 +218,11 @@ app.controller('FinishController', ['$scope', '$location', 'Wizard', 'Client', f
|
|||||||
Client.changeCloudronAvatar($scope.wizard.avatarBlob, function (error) {
|
Client.changeCloudronAvatar($scope.wizard.avatarBlob, function (error) {
|
||||||
if (error) return console.error('Unable to set avatar.', 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) {
|
Client.setDnsConfig($scope.wizard.dnsConfig, function (error) {
|
||||||
if (error) return console.error('Unable to set dns config.', error);
|
if (error) return console.error('Unable to set dns config.', error);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user