From 9342bcd391f38d7e1708b72da36e9ed6ce93a37e Mon Sep 17 00:00:00 2001 From: rolux Date: Sun, 30 Oct 2011 08:33:45 +0000 Subject: [PATCH] in info view, don't throw error if no poster is selected --- static/js/pandora/infoView.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/static/js/pandora/infoView.js b/static/js/pandora/infoView.js index a2d6be3d4..dbf6d181a 100644 --- a/static/js/pandora/infoView.js +++ b/static/js/pandora/infoView.js @@ -670,7 +670,8 @@ pandora.ui.infoView = function(data) { max: 1, min: 1, orientation: 'both', - selected: [selectedImage['index']], + // fixme: should never be undefined + selected: selectedImage ? [selectedImage['index']] : [], size: 128, sort: [{key: 'index', operator: '+'}], unique: 'index'