fix(applications/ports-mapping): load balancer link expand only if the item length > 1 (#4495)

pull/3937/head
Alice Groux 2020-12-10 03:27:18 +01:00 committed by GitHub
parent 1ad4623b08
commit eadd8b36d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,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;
}