From c8c54cf991815a95a777aa5f85cdc568dc10e3d5 Mon Sep 17 00:00:00 2001 From: Anthony Lapenna Date: Thu, 12 Jul 2018 07:22:02 +0200 Subject: [PATCH] fix(templates): fix an issue when deploying a swarm stack template --- app/portainer/views/templates/templatesController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/portainer/views/templates/templatesController.js b/app/portainer/views/templates/templatesController.js index d00aa831c..7c9607715 100644 --- a/app/portainer/views/templates/templatesController.js +++ b/app/portainer/views/templates/templatesController.js @@ -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);