This is an automated email from the ASF dual-hosted git repository. heneveld pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/brooklyn-ui.git
commit af821ddf37a28510fc1079b301920957d2f804fd Author: Alex Heneveld <[email protected]> AuthorDate: Fri Nov 4 22:02:21 2022 +0000 remove error when working with members of a group --- .../app/components/entity-tree/entity-tree.directive.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ui-modules/app-inspector/app/components/entity-tree/entity-tree.directive.js b/ui-modules/app-inspector/app/components/entity-tree/entity-tree.directive.js index b5215723..fdc35ba4 100644 --- a/ui-modules/app-inspector/app/components/entity-tree/entity-tree.directive.js +++ b/ui-modules/app-inspector/app/components/entity-tree/entity-tree.directive.js @@ -501,7 +501,11 @@ export function entityNodeDirective() { function controller ($scope, $state, $stateParams, iconService) { $scope.isOpen = true; - iconService.get($scope.entity, true).then(value => $scope.iconUrl = value); + if ($scope.entity.type) { + iconService.get($scope.entity, true).then(value => $scope.iconUrl = value); + } else { + // it's a member of a group; we could look up the target and take that icon, but for now, no icon + } if ($stateParams.entityId === $scope.entity.id) { $scope.$emit('notifyEntity', {
