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