From 39cdfc131b2e70ab0535496e369472974aa4e1c7 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sun, 21 Dec 2014 15:30:52 +0000 Subject: [PATCH] fix list for undefined values, i.e. resolution --- static/js/list.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/static/js/list.js b/static/js/list.js index 9523d77f..47066458 100644 --- a/static/js/list.js +++ b/static/js/list.js @@ -134,7 +134,9 @@ pandora.ui.list = function() { info = data['year']; } 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(