From c36a246b5df03506f7947ed911c8b24699a2402e Mon Sep 17 00:00:00 2001 From: John Mitchell Date: Tue, 3 Jan 2017 13:44:00 -0500 Subject: [PATCH] add null as well as undefined check --- .../src/inventories/manage/groups/groups-list.controller.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/awx/ui/client/src/inventories/manage/groups/groups-list.controller.js b/awx/ui/client/src/inventories/manage/groups/groups-list.controller.js index 6cd7d45cc4..bdfdb5dae0 100644 --- a/awx/ui/client/src/inventories/manage/groups/groups-list.controller.js +++ b/awx/ui/client/src/inventories/manage/groups/groups-list.controller.js @@ -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 = {}; }