diff --git a/app/models/service.js b/app/models/service.js index c60c3faab..12c97971c 100644 --- a/app/models/service.js +++ b/app/models/service.js @@ -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 = [];