mirror of https://github.com/portainer/portainer
fix(service): check endpoint spec existence before update
parent
e2b8633aac
commit
00daedca30
|
@ -300,7 +300,7 @@ function ($q, $scope, $transition$, $state, $location, $timeout, $anchorScroll,
|
|||
}
|
||||
|
||||
config.EndpointSpec = {
|
||||
Mode: config.EndpointSpec.Mode || 'vip',
|
||||
Mode: (config.EndpointSpec && config.EndpointSpec.Mode) || 'vip',
|
||||
Ports: service.Ports
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue