mirror of
https://github.com/ansible/awx.git
synced 2026-02-28 08:18:43 -03:30
add null as well as undefined check
This commit is contained in:
@@ -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 = {};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user