From e063cc702061fd701c73b5e65de4bf366879d6c0 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 23 May 2015 18:02:24 +0200 Subject: [PATCH] use empty string if value is undefined or null, fixes #2790 --- static/js/clipList.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/static/js/clipList.js b/static/js/clipList.js index c351122ba..ba6d8af10 100644 --- a/static/js/clipList.js +++ b/static/js/clipList.js @@ -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(