From 041f79379cf423c53073ab13911e1e313390f098 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 20 Jun 2017 05:39:26 -0400 Subject: [PATCH] Fix getAsync() integer warning when highlighting item collections --- chrome/content/zotero/xpcom/collectionTreeView.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/chrome/content/zotero/xpcom/collectionTreeView.js b/chrome/content/zotero/xpcom/collectionTreeView.js index c968bbd99..a3f491db1 100644 --- a/chrome/content/zotero/xpcom/collectionTreeView.js +++ b/chrome/content/zotero/xpcom/collectionTreeView.js @@ -656,8 +656,7 @@ Zotero.CollectionTreeView.prototype.setHighlightedRows = Zotero.Promise.coroutin // Make sure all highlighted collections are shown for (let id of ids) { if (id[0] == 'C') { - id = id.substr(1); - yield this.expandToCollection(id); + yield this.expandToCollection(parseInt(id.substr(1))); } }