From 3d1df82836cf3730413b482d1ed7d3165f416999 Mon Sep 17 00:00:00 2001 From: Aurimas Vinckevicius Date: Mon, 4 Nov 2013 14:15:57 -0600 Subject: [PATCH] Don't attempt to select items that are not in the item tree --- chrome/content/zotero/xpcom/itemTreeView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/itemTreeView.js b/chrome/content/zotero/xpcom/itemTreeView.js index e9f54e558..5b25c77c2 100644 --- a/chrome/content/zotero/xpcom/itemTreeView.js +++ b/chrome/content/zotero/xpcom/itemTreeView.js @@ -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;