in info view, don't throw error if no poster is selected
This commit is contained in:
parent
f164e38886
commit
9342bcd391
1 changed files with 2 additions and 1 deletions
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue