KEYCLOAK-694 Fix JS error which could happen when creating application
This commit is contained in:
parent
fc37398235
commit
95233af485
1 changed files with 0 additions and 5 deletions
|
@ -246,7 +246,6 @@ module.controller('ApplicationDetailCtrl', function($scope, realm, application,
|
|||
}
|
||||
} else {
|
||||
$scope.application = { enabled: true };
|
||||
$scope.application.webOrigins = [];
|
||||
$scope.application.redirectUris = [];
|
||||
$scope.accessType = $scope.accessTypes[0];
|
||||
}
|
||||
|
@ -296,10 +295,6 @@ module.controller('ApplicationDetailCtrl', function($scope, realm, application,
|
|||
Notifications.error("You must specify at least one redirect uri");
|
||||
} else {
|
||||
if ($scope.create) {
|
||||
if ($scope.application.webOrigins.length == 0) {
|
||||
// let rest api put in default webOrigins
|
||||
$scope.application.webOrigins = null;
|
||||
}
|
||||
Application.save({
|
||||
realm: realm.realm,
|
||||
application: ''
|
||||
|
|
Loading…
Reference in a new issue