mirror of
https://github.com/ansible/awx.git
synced 2026-03-27 22:05:07 -02:30
add null as well as undefined check
This commit is contained in:
@@ -46,7 +46,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function buildStatusIndicators(group){
|
function buildStatusIndicators(group){
|
||||||
if (group === undefined) {
|
if (group === undefined || group === null) {
|
||||||
group = {};
|
group = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -147,7 +147,7 @@
|
|||||||
$scope.$on(`ws-jobs`, function(e, data){
|
$scope.$on(`ws-jobs`, function(e, data){
|
||||||
var group = Find({ list: $scope.groups, key: 'id', val: data.group_id });
|
var group = Find({ list: $scope.groups, key: 'id', val: data.group_id });
|
||||||
|
|
||||||
if (group === undefined) {
|
if (group === undefined || group === null) {
|
||||||
group = {};
|
group = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user