Fix property access issue
This commit is contained in:
parent
7789e99b99
commit
df596edaac
1 changed files with 2 additions and 0 deletions
|
@ -85,6 +85,8 @@ angular.module('quay').directive('robotsManager', function () {
|
|||
};
|
||||
|
||||
$scope.findRobotIndexByName = function(name) {
|
||||
if (!$scope.robots) { return -1; }
|
||||
|
||||
for (var i = 0; i < $scope.robots.length; ++i) {
|
||||
if ($scope.robots[i].name == name) {
|
||||
return i;
|
||||
|
|
Reference in a new issue