diff --git a/app/portainer/views/stacks/edit/stackController.js b/app/portainer/views/stacks/edit/stackController.js index f7e8b05d2..73d28df66 100644 --- a/app/portainer/views/stacks/edit/stackController.js +++ b/app/portainer/views/stacks/edit/stackController.js @@ -269,8 +269,7 @@ angular.module('portainer.app').controller('StackController', [ var stack = data.stack; $scope.groups = data.groups; $scope.stack = stack; - $scope.containers = data.containers; - $scope.containerNames = ContainerHelper.getContainerNames($scope.containers); + $scope.containerNames = ContainerHelper.getContainerNames(data.containers); let resourcesPromise = Promise.resolve({}); if (stack.Status === 1) {