mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix EndpointSubset.toString() to work without ports (#336)
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
This commit is contained in:
parent
dd8dc23514
commit
0a3b5dae73
@ -86,6 +86,9 @@ export class EndpointSubset implements IEndpointSubset {
|
|||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
return this.addresses.map(address => {
|
return this.addresses.map(address => {
|
||||||
|
if (!this.ports) {
|
||||||
|
return address.ip
|
||||||
|
}
|
||||||
return this.ports.map(port => {
|
return this.ports.map(port => {
|
||||||
return `${address.ip}:${port.port}`
|
return `${address.ip}:${port.port}`
|
||||||
}).join(", ")
|
}).join(", ")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user