mirror of
https://github.com/ansible/awx.git
synced 2026-07-29 00:49:55 -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
|
// iterate over the list and add fields like type label, after the
|
||||||
// OPTIONS request returns, or the list is sorted/paginated/searched
|
// OPTIONS request returns, or the list is sorted/paginated/searched
|
||||||
function optionsRequestDataProcessing(){
|
function optionsRequestDataProcessing(){
|
||||||
|
if ($scope[list.name] !== undefined) {
|
||||||
$scope[list.name].forEach(function(item, item_idx) {
|
$scope[list.name].forEach(function(item, item_idx) {
|
||||||
var itm = $scope[list.name][item_idx];
|
var itm = $scope[list.name][item_idx];
|
||||||
|
|
||||||
@@ -70,6 +71,7 @@ export function ProjectsList($scope, $rootScope, $location, $log, $stateParams,
|
|||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function buildTooltips(project) {
|
function buildTooltips(project) {
|
||||||
project.statusIcon = GetProjectIcon(project.status);
|
project.statusIcon = GetProjectIcon(project.status);
|
||||||
|
|||||||
Reference in New Issue
Block a user