forked from 0x2620/pandora
use empty string if value is undefined or null, fixes #2790
This commit is contained in:
parent
4705e33ef1
commit
e063cc7020
1 changed files with 3 additions and 1 deletions
|
@ -44,7 +44,9 @@ pandora.ui.clipList = function(videoRatio) {
|
|||
+ Ox.formatDuration(data.out);
|
||||
} else {
|
||||
format = pandora.getSortKeyData(sortKey).format;
|
||||
if (format) {
|
||||
if (Ox.isUndefined(data[sortKey]) || Ox.isNull(data[sortKey])) {
|
||||
info = '';
|
||||
} else if (format) {
|
||||
info = (
|
||||
/^color/.test(format.type.toLowerCase()) ? Ox.Theme : Ox
|
||||
)['format' + Ox.toTitleCase(format.type)].apply(
|
||||
|
|
Loading…
Reference in a new issue