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