Skip to content

Commit 8a5a5f1

Browse files
author
OpenShift Bot
authoredFeb 20, 2017
Merge pull request #1269 from spadgett/missing-child-services
Merged by openshift-bot
2 parents e56ff68 + 4d7d014 commit 8a5a5f1

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed
 

‎app/scripts/controllers/overview.js

+4
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,10 @@ angular.module('openshiftConsole')
319319

320320
var addChildService = function(parentName, childName) {
321321
var child = services[childName];
322+
if (!child) {
323+
return;
324+
}
325+
322326
childServices[childName] = child;
323327
$scope.childServicesByParent[parentName] = $scope.childServicesByParent[parentName] || [];
324328
$scope.childServicesByParent[parentName].push(child);

‎dist/scripts/scripts.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4669,7 +4669,7 @@ var d = _.get(c, [ "childServicesByParent", b ], []);
46694669
return !_.isEmpty(d);
46704670
}, ea = function(a, b) {
46714671
var d = r[b];
4672-
ba[b] = d, c.childServicesByParent[a] = c.childServicesByParent[a] || [], c.childServicesByParent[a].push(d);
4672+
d && (ba[b] = d, c.childServicesByParent[a] = c.childServicesByParent[a] || [], c.childServicesByParent[a].push(d));
46734673
}, fa = {};
46744674
c.isDuplicateApp = function(a) {
46754675
return _.size(fa[a]) > 1;

0 commit comments

Comments
 (0)
Please sign in to comment.