Skip to content

Commit

Permalink
Fix extra space in application tree pod group (argoproj#16358)
Browse files Browse the repository at this point in the history
Signed-off-by: Ashin Sabu <[email protected]>
  • Loading branch information
ashinsabu3 authored and tesla59 committed Dec 16, 2023
1 parent 69ad4a9 commit 1a9de49
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -564,11 +564,13 @@ function renderPodGroup(props: ApplicationResourceTreeProps, id: string, node: R
</div>
<div className='application-resource-tree__node--lower-section'>
{[podGroupHealthy, podGroupDegraded, podGroupInProgress].map((pods, index) => {
return (
<div key={index} className={`application-resource-tree__node--lower-section__pod-group`}>
{renderPodGroupByStatus(props, node, pods, showPodGroupByStatus)}
</div>
);
if (pods.length > 0) {
return (
<div key={index} className={`application-resource-tree__node--lower-section__pod-group`}>
{renderPodGroupByStatus(props, node, pods, showPodGroupByStatus)}
</div>
);
}
})}
</div>
</div>
Expand Down

0 comments on commit 1a9de49

Please sign in to comment.