forked from 0x2620/pandora
do not set item to undefined if browser gets empty selection, fixes #518
This commit is contained in:
parent
b5c0bbb6d8
commit
8da7f15f86
1 changed files with 1 additions and 1 deletions
|
@ -115,7 +115,7 @@ pandora.ui.browser = function() {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
select: function(data) {
|
select: function(data) {
|
||||||
pandora.UI.set({
|
data.ids.length && pandora.UI.set({
|
||||||
'item': data.ids[0]
|
'item': data.ids[0]
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue