diff --git a/app/portainer/views/stacks/create/createStackController.js b/app/portainer/views/stacks/create/createStackController.js index df7892365..7d226fccb 100644 --- a/app/portainer/views/stacks/create/createStackController.js +++ b/app/portainer/views/stacks/create/createStackController.js @@ -158,6 +158,7 @@ angular $scope.onChangeTemplate = async function onChangeTemplate(template) { try { + $scope.formValues.StackFileContent = undefined; $scope.selectedTemplate = template; $scope.formValues.StackFileContent = await CustomTemplateService.customTemplateFile(template.Id); } catch (err) {