From 5cc23093efdbd8daa1ec6566268ee9aae54c22b2 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Mon, 25 May 2015 12:51:11 +0000 Subject: [PATCH] keys might be undefined --- static/js/infoView.indiancinema.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/infoView.indiancinema.js b/static/js/infoView.indiancinema.js index ce5312f2..a7bdf021 100644 --- a/static/js/infoView.indiancinema.js +++ b/static/js/infoView.indiancinema.js @@ -619,7 +619,7 @@ pandora.ui.infoView = function(data) { var year = item.year || Ox._('Unknown Year'); if (key == 'name' && result.data.items.length > 1) { item.roles = nameKeys.filter(function(nameKey) { - return Ox.contains(item[nameKey], value); + return item[nameKey] && Ox.contains(item[nameKey], value); }); if (roles.length == 1 && Ox.isEqual(item.roles, roles)) { delete item.roles;