mirror of https://github.com/portainer/portainer
fix(services) - Fix exposed ports (#746)
parent
a48503d821
commit
9fda8f9c92
|
@ -53,8 +53,8 @@ function ServiceViewModel(data, runningTasks, nodes) {
|
|||
this.Command = containerSpec.Command;
|
||||
this.Secrets = containerSpec.Secrets;
|
||||
}
|
||||
if (data.Spec.EndpointSpec) {
|
||||
this.Ports = data.Spec.EndpointSpec.Ports;
|
||||
if (data.Endpoint) {
|
||||
this.Ports = data.Endpoint.Ports;
|
||||
}
|
||||
|
||||
this.Mounts = [];
|
||||
|
|
Loading…
Reference in New Issue