Merge pull request #5232 from ryanpetrello/fix-5194

only loop over project OPTIONS response if the response is valid
This commit is contained in:
Ryan Petrello
2017-02-07 16:23:38 -05:00
committed by GitHub

View File

@@ -51,6 +51,7 @@ export function ProjectsList($scope, $rootScope, $location, $log, $stateParams,
// iterate over the list and add fields like type label, after the
// OPTIONS request returns, or the list is sorted/paginated/searched
function optionsRequestDataProcessing(){
if ($scope[list.name] !== undefined) {
$scope[list.name].forEach(function(item, item_idx) {
var itm = $scope[list.name][item_idx];
@@ -70,6 +71,7 @@ export function ProjectsList($scope, $rootScope, $location, $log, $stateParams,
});
}
}
function buildTooltips(project) {
project.statusIcon = GetProjectIcon(project.status);