Skip to content

Commit

Permalink
Merge pull request #1755 from duftler/avoid-undefined
Browse files Browse the repository at this point in the history
Avoid undefined error when considering scope.secondaryAccounts.
  • Loading branch information
Matt Duftler committed Nov 25, 2015
2 parents 1a4d4da + 4ec8429 commit d755275
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ module.exports = angular.module('spinnaker.core.account.accountSelectField.direc
}

scope.groupBy = function(account) {
if(scope.secondaryAccounts.indexOf(account) > -1) {
if(scope.secondaryAccounts && scope.secondaryAccounts.indexOf(account) > -1) {
return '---------------';
}

Expand Down

0 comments on commit d755275

Please sign in to comment.