mirror of
https://github.com/portainer/portainer.git
synced 2025-07-22 14:59:41 +02:00
fix(service): check endpoint spec existence before update
This commit is contained in:
parent
e2b8633aac
commit
00daedca30
1 changed files with 1 additions and 1 deletions
|
@ -300,7 +300,7 @@ function ($q, $scope, $transition$, $state, $location, $timeout, $anchorScroll,
|
||||||
}
|
}
|
||||||
|
|
||||||
config.EndpointSpec = {
|
config.EndpointSpec = {
|
||||||
Mode: config.EndpointSpec.Mode || 'vip',
|
Mode: (config.EndpointSpec && config.EndpointSpec.Mode) || 'vip',
|
||||||
Ports: service.Ports
|
Ports: service.Ports
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue