feat(applications/ports-mapping): load balancer link expand only if item length > 1 (#148)

This commit is contained in:
Alice Groux
2021-03-03 19:51:53 +01:00
committed by GitHub
parent 14550db3b5
commit c4ffaa4da2
@@ -94,7 +94,7 @@ class KubernetesApplicationsController {
_.forEach(this.ports, (item) => {
item.Expanded = false;
item.Highlighted = false;
if (item.Name === application.Name) {
if (item.Name === application.Name && item.Ports.length > 1) {
item.Expanded = true;
item.Highlighted = true;
}