mirror of
https://github.com/ansible/awx.git
synced 2026-01-17 12:41:19 -03:30
fixes #4548
make sure group is initialized to empty object if undefined to fix console error
This commit is contained in:
parent
9bad0e7396
commit
234f7b409c
@ -46,6 +46,10 @@
|
||||
}
|
||||
|
||||
function buildStatusIndicators(group){
|
||||
if (group === undefined) {
|
||||
group = {};
|
||||
}
|
||||
|
||||
let group_status, hosts_status;
|
||||
|
||||
group_status = GetSyncStatusMsg({
|
||||
@ -142,10 +146,14 @@
|
||||
|
||||
$scope.$on(`ws-jobs`, function(e, data){
|
||||
var group = Find({ list: $scope.groups, key: 'id', val: data.group_id });
|
||||
|
||||
if (group === undefined) {
|
||||
group = {};
|
||||
}
|
||||
|
||||
if(data.status === 'failed' || data.status === 'successful'){
|
||||
$state.reload();
|
||||
}
|
||||
else{
|
||||
} else {
|
||||
var status = GetSyncStatusMsg({
|
||||
status: data.status,
|
||||
has_inventory_sources: group.has_inventory_sources,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user