fix(templates): fix an issue when deploying a swarm stack template

pull/2047/head
Anthony Lapenna 2018-07-12 07:22:02 +02:00
parent 80ee25d817
commit c8c54cf991
1 changed files with 1 additions and 1 deletions

View File

@ -164,7 +164,7 @@ function ($scope, $q, $state, $transition$, $anchorScroll, ContainerService, Ima
$scope.state.actionInProgress = true;
if (template.Type === 2) {
createStackFromTemplate(template, userId, accessControlData);
} if (template.Type === 3) {
} else if (template.Type === 3) {
createComposeStackFromTemplate(template, userId, accessControlData);
} else {
createContainerFromTemplate(template, userId, accessControlData);