only loop over project OPTIONS response if the response is valid

see: #5194
This commit is contained in:
Ryan Petrello
2017-02-07 16:15:03 -05:00
parent 5554b46401
commit 866fe7e265

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