1
0
Fork 0
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:
Thomas Krzero 2018-01-05 14:49:41 +01:00 committed by Anthony Lapenna
parent e2b8633aac
commit 00daedca30

View file

@ -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
};