add null as well as undefined check

This commit is contained in:
John Mitchell 2017-01-03 13:44:00 -05:00
parent 234f7b409c
commit c36a246b5d

View File

@ -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 = {};
}