fix(service): check endpoint spec existence before update

pull/1538/head
Thomas Krzero 2018-01-05 14:49:41 +01:00 committed by Anthony Lapenna
parent e2b8633aac
commit 00daedca30
1 changed files with 1 additions and 1 deletions

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