Fix another NPE
This commit is contained in:
parent
70cc895b95
commit
783beb91eb
1 changed files with 5 additions and 1 deletions
|
@ -243,7 +243,11 @@ angular.module('quay').factory('TriggerService', ['UtilService', '$sanitize', 'K
|
|||
triggerService.getDescription = function(name, config) {
|
||||
var icon = triggerService.getIcon(name);
|
||||
var title = triggerService.getTitle(name);
|
||||
var source = UtilService.textToSafeHtml(config['build_source']);
|
||||
var source = '';
|
||||
if (config && config['build_source']) {
|
||||
source = UtilService.textToSafeHtml(config['build_source']);
|
||||
}
|
||||
|
||||
var desc = '<i class"fa ' + icon + ' fa-lg" style="margin-left:2px; margin-right: 2px"></i> Push to ' + title + ' ' + source;
|
||||
return desc;
|
||||
};
|
||||
|
|
Reference in a new issue