Fix bug when location is set without error
This commit is contained in:
+1
-1
@@ -458,8 +458,8 @@ angular.module('Application').controller('AppController', ['$scope', '$location'
|
|||||||
}
|
}
|
||||||
|
|
||||||
Client.configureApp($scope.app.id, 'location', data, function (error) {
|
Client.configureApp($scope.app.id, 'location', data, function (error) {
|
||||||
var errorMessage = error.message.toLowerCase();
|
|
||||||
if (error && (error.statusCode === 409 || error.statusCode === 400)) {
|
if (error && (error.statusCode === 409 || error.statusCode === 400)) {
|
||||||
|
var errorMessage = error.message.toLowerCase();
|
||||||
if (errorMessage.indexOf('location') !== -1) {
|
if (errorMessage.indexOf('location') !== -1) {
|
||||||
if (errorMessage.indexOf('primary') !== -1) {
|
if (errorMessage.indexOf('primary') !== -1) {
|
||||||
$scope.location.error.location = error.message;
|
$scope.location.error.location = error.message;
|
||||||
|
|||||||
Reference in New Issue
Block a user