diff --git a/public/js/controllers/projects/templates.js b/public/js/controllers/projects/templates.js index d30b2d3f..79031e1f 100644 --- a/public/js/controllers/projects/templates.js +++ b/public/js/controllers/projects/templates.js @@ -121,9 +121,7 @@ define(['controllers/projects/taskRunner'], function () { }).catch(function (response) { swal('error', 'could not add template:' + response.status, 'error'); }); - }); - - modal.closed.then(function () { + }, function() { $scope.reload(); }); }