Fix NPE
This commit is contained in:
parent
61dcf86d2a
commit
3b3102478a
1 changed files with 6 additions and 0 deletions
|
@ -70,6 +70,8 @@ angular.module('quay').directive('triggerSetupGithost', function () {
|
|||
};
|
||||
|
||||
$scope.loadRepositories = function(callback) {
|
||||
if (!$scope.trigger || !$scope.repository) { return; }
|
||||
|
||||
var params = {
|
||||
'repository': $scope.repository.namespace + '/' + $scope.repository.name,
|
||||
'trigger_uuid': $scope.trigger.id
|
||||
|
@ -83,6 +85,8 @@ angular.module('quay').directive('triggerSetupGithost', function () {
|
|||
};
|
||||
|
||||
$scope.loadBranchesAndTags = function(callback) {
|
||||
if (!$scope.trigger || !$scope.repository) { return; }
|
||||
|
||||
var params = {
|
||||
'repository': $scope.repository.namespace + '/' + $scope.repository.name,
|
||||
'trigger_uuid': $scope.trigger['id'],
|
||||
|
@ -108,6 +112,8 @@ angular.module('quay').directive('triggerSetupGithost', function () {
|
|||
};
|
||||
|
||||
$scope.loadLocations = function(callback) {
|
||||
if (!$scope.trigger || !$scope.repository) { return; }
|
||||
|
||||
$scope.locations = null;
|
||||
|
||||
var params = {
|
||||
|
|
Reference in a new issue