KEYCLOAK-694 Fix JS error which could happen when creating application
This commit is contained in:
1 parent
fc37398235
commit
95233af485
1 file changed
-5
-5
@@ -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: ''
|
||||
|
||||
Reference in new issue
Block a user