mirror of
https://github.com/ansible/awx.git
synced 2026-05-23 16:47:45 -02:30
only loop over project OPTIONS response if the response is valid
see: #5194
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user