mirror of https://github.com/portainer/portainer
fix(service-details): fix an update issue when no ports are defined (#765)
parent
80a0a15490
commit
3fc54c095e
|
@ -198,11 +198,13 @@ function ($scope, $stateParams, $state, $location, $anchorScroll, Service, Servi
|
||||||
Window: service.RestartWindow
|
Window: service.RestartWindow
|
||||||
};
|
};
|
||||||
|
|
||||||
service.Ports.forEach(function (binding) {
|
if (service.Ports) {
|
||||||
if (binding.PublishedPort === null || binding.PublishedPort === '') {
|
service.Ports.forEach(function (binding) {
|
||||||
delete binding.PublishedPort;
|
if (binding.PublishedPort === null || binding.PublishedPort === '') {
|
||||||
}
|
delete binding.PublishedPort;
|
||||||
});
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
config.EndpointSpec = {
|
config.EndpointSpec = {
|
||||||
Mode: config.EndpointSpec.Mode || 'vip',
|
Mode: config.EndpointSpec.Mode || 'vip',
|
||||||
|
|
Loading…
Reference in New Issue