Don't attempt to select items that are not in the item tree
This commit is contained in:
parent
571dfc551c
commit
3d1df82836
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue