Skip to content

Commit

Permalink
Fix components end point (#1078)
Browse files Browse the repository at this point in the history
  • Loading branch information
crazysaltfish authored Feb 16, 2023
1 parent 40caa51 commit 9930d16
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,10 @@ public ApplicationComponents components() {
componentTypes.forEach(componentType -> {
Collection<ComponentInfo> componentInfos = componentManager.getComponentInfosByType(componentType);
Collection<ComponentDisplayInfo> componentDisplayInfos = componentInfos.stream()
.map(componentInfo -> new ComponentDisplayInfo(componentInfo.getName().getName(),
componentInfo.getApplicationContext().getId()))
.map(componentInfo -> {
String applicationId = componentInfo.getApplicationContext() == null ? "null" : componentInfo.getApplicationContext().getId();
return new ComponentDisplayInfo(componentInfo.getName().getName(), applicationId);
})
.collect(Collectors.toList());
componentsInfoMap.put(componentType.getName(), componentDisplayInfos);
});
Expand Down

0 comments on commit 9930d16

Please sign in to comment.