From f5749f82d822a44075ae2be7a318e794775fd5ca Mon Sep 17 00:00:00 2001 From: Anthony Lapenna Date: Fri, 22 Sep 2017 07:34:17 +0200 Subject: [PATCH] fix(endpoint-details): fix an issue when updating the local endpoint (#1226) --- app/components/endpoint/endpointController.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/components/endpoint/endpointController.js b/app/components/endpoint/endpointController.js index 6b353c9d8..0d7eef87a 100644 --- a/app/components/endpoint/endpointController.js +++ b/app/components/endpoint/endpointController.js @@ -54,14 +54,13 @@ function ($scope, $state, $transition$, $filter, EndpointService, Notifications) EndpointService.endpoint($transition$.params().id) .then(function success(data) { var endpoint = data; - endpoint.URL = $filter('stripprotocol')(endpoint.URL); - $scope.endpoint = endpoint; - if (endpoint.URL.indexOf('unix://') === 0) { $scope.endpointType = 'local'; } else { $scope.endpointType = 'remote'; } + endpoint.URL = $filter('stripprotocol')(endpoint.URL); + $scope.endpoint = endpoint; }) .catch(function error(err) { Notifications.error('Failure', err, 'Unable to retrieve endpoint details');