Fix NPE
This commit is contained in:
parent
62930aa9b5
commit
91f9987d41
1 changed files with 3 additions and 1 deletions
|
@ -3789,6 +3789,8 @@ quayApp.directive('setupTriggerDialog', function () {
|
||||||
var modalSetup = false;
|
var modalSetup = false;
|
||||||
|
|
||||||
$scope.show = function() {
|
$scope.show = function() {
|
||||||
|
if (!$scope.trigger || !$scope.repository) { return; }
|
||||||
|
|
||||||
$scope.activating = false;
|
$scope.activating = false;
|
||||||
$scope.pullEntity = null;
|
$scope.pullEntity = null;
|
||||||
$scope.publicPull = true;
|
$scope.publicPull = true;
|
||||||
|
@ -3798,7 +3800,7 @@ quayApp.directive('setupTriggerDialog', function () {
|
||||||
|
|
||||||
if (!modalSetup) {
|
if (!modalSetup) {
|
||||||
$('#setupTriggerModal').on('hidden.bs.modal', function () {
|
$('#setupTriggerModal').on('hidden.bs.modal', function () {
|
||||||
if ($scope.trigger['is_active']) { return; }
|
if (!$scope.trigger || $scope.trigger['is_active']) { return; }
|
||||||
|
|
||||||
$scope.$apply(function() {
|
$scope.$apply(function() {
|
||||||
$scope.cancelSetupTrigger();
|
$scope.cancelSetupTrigger();
|
||||||
|
|
Reference in a new issue