Fixed error in users.js if required actions is null (for example when creating new user)
This commit is contained in:
parent
846c094ba2
commit
cecaf8c96a
1 changed files with 1 additions and 1 deletions
|
@ -155,7 +155,7 @@ module.controller('UserDetailCtrl', function($scope, realm, user, User, $locatio
|
|||
for (var i = 0; i < userReqActionList.length; i++){
|
||||
var action = userReqActionList[i];
|
||||
|
||||
if ($scope.user.requiredActions.indexOf(action.id) > -1){
|
||||
if ($scope.user.requiredActions && $scope.user.requiredActions.indexOf(action.id) > -1){
|
||||
$scope.userActions.push({id: action.id, text: action.text});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue