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.Command = containerSpec.Command;
|
||||||
this.Secrets = containerSpec.Secrets;
|
this.Secrets = containerSpec.Secrets;
|
||||||
}
|
}
|
||||||
if (data.Spec.EndpointSpec) {
|
if (data.Endpoint) {
|
||||||
this.Ports = data.Spec.EndpointSpec.Ports;
|
this.Ports = data.Endpoint.Ports;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.Mounts = [];
|
this.Mounts = [];
|
||||||
|
|
Loading…
Reference in New Issue