Fix property access issue

This commit is contained in:
Joseph Schorr 2015-05-05 12:19:56 -07:00
parent 7789e99b99
commit df596edaac

View file

@ -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;