diff --git a/static/js/app.js b/static/js/app.js index 9c701d62a..0ecbb8842 100644 --- a/static/js/app.js +++ b/static/js/app.js @@ -3789,6 +3789,8 @@ quayApp.directive('setupTriggerDialog', function () { var modalSetup = false; $scope.show = function() { + if (!$scope.trigger || !$scope.repository) { return; } + $scope.activating = false; $scope.pullEntity = null; $scope.publicPull = true; @@ -3798,7 +3800,7 @@ quayApp.directive('setupTriggerDialog', function () { if (!modalSetup) { $('#setupTriggerModal').on('hidden.bs.modal', function () { - if ($scope.trigger['is_active']) { return; } + if (!$scope.trigger || $scope.trigger['is_active']) { return; } $scope.$apply(function() { $scope.cancelSetupTrigger();