forked from 0x2620/pandora
dont fail if license is undefined
This commit is contained in:
parent
07d99ee056
commit
91490c71f0
1 changed files with 2 additions and 2 deletions
|
@ -390,7 +390,7 @@ pandora.ui.infoView = function(data) {
|
||||||
Ox.Editable({
|
Ox.Editable({
|
||||||
placeholder: formatLight('No License'),
|
placeholder: formatLight('No License'),
|
||||||
tooltip: 'Doubleclick to edit',
|
tooltip: 'Doubleclick to edit',
|
||||||
value: data.license.join(', '),
|
value: (data.license || []).join(', ')
|
||||||
})
|
})
|
||||||
.bindEvent({
|
.bindEvent({
|
||||||
submit: function(event) {
|
submit: function(event) {
|
||||||
|
@ -401,7 +401,7 @@ pandora.ui.infoView = function(data) {
|
||||||
} else if(data.license) {
|
} else if(data.license) {
|
||||||
$div.html(
|
$div.html(
|
||||||
formatKey('License')
|
formatKey('License')
|
||||||
+ data.license.join(', ')
|
+ (data.license || []).join(', ')
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue