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 <ashin.sabu@harness.io>
Signed-off-by: Kevin Lyda <kevin@lyda.ie>
  • Loading branch information
ashinsabu3 authored and lyda committed Mar 28, 2024
1 parent dd5a1bc commit 8f13595
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 8f13595

Please sign in to comment.