commit 041f79379cf423c53073ab13911e1e313390f098 parent f3b461ae1d7f6ce20e9efc03a446390a6f57801a Author: Dan Stillman <dstillman@zotero.org> Date: Tue, 20 Jun 2017 05:39:26 -0400 Fix getAsync() integer warning when highlighting item collections Diffstat:
| M | 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 @@ -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))); } }