Don't attempt to select items that are not in the item tree

This commit is contained in:
Aurimas Vinckevicius 2013-11-04 14:15:57 -06:00
parent 571dfc551c
commit 3d1df82836

View file

@ -1898,7 +1898,7 @@ Zotero.ItemTreeView.prototype.selectItems = function(ids) {
var rows = [];
for each(var id in ids) {
rows.push(this._itemRowMap[id]);
if(this._itemRowMap[id] !== undefined) rows.push(this._itemRowMap[id]);
}
rows.sort(function (a, b) {
return a - b;