diff --git a/themes/src/main/resources/theme/base/admin/resources/js/controllers/users.js b/themes/src/main/resources/theme/base/admin/resources/js/controllers/users.js index 88c57a7d53..e8484928fe 100755 --- a/themes/src/main/resources/theme/base/admin/resources/js/controllers/users.js +++ b/themes/src/main/resources/theme/base/admin/resources/js/controllers/users.js @@ -596,6 +596,9 @@ module.controller('UserFederationCtrl', function($scope, $location, $route, real console.log('UserFederationCtrl ++++****'); $scope.realm = realm; $scope.providers = serverInfo.componentTypes['org.keycloak.storage.UserStorageProvider']; + + if (!$scope.providers) $scope.providers = []; + for (var i = 0; i < $scope.providers.length; i++) { $scope.providers[i].isUserFederationProvider = false; }