1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-02 20:35:25 +02:00

fix(services) - Fix exposed ports (#746)

This commit is contained in:
Thomas Krzero 2017-03-30 11:39:37 +02:00 committed by Anthony Lapenna
parent a48503d821
commit 9fda8f9c92

View file

@ -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 = [];