mirror of
https://github.com/ZwareBear/awx.git
synced 2026-03-22 16:53:35 -05:00
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