Fix JS NPEs
This commit is contained in:
parent
7ec0ad45fc
commit
70cc895b95
4 changed files with 5 additions and 3 deletions
|
@ -15,6 +15,7 @@ angular.module('quay').directive('sourceCommitLink', function () {
|
|||
},
|
||||
controller: function($scope, $element) {
|
||||
$scope.getUrl = function(sha, template) {
|
||||
if (!template) { return ''; }
|
||||
return template.replace('{sha}', sha);
|
||||
};
|
||||
}
|
||||
|
|
Reference in a new issue