diff --git a/chrome/content/zotero/xpcom/collectionTreeView.js b/chrome/content/zotero/xpcom/collectionTreeView.js index e6c8321397..f6f7afcd13 100644 --- a/chrome/content/zotero/xpcom/collectionTreeView.js +++ b/chrome/content/zotero/xpcom/collectionTreeView.js @@ -184,9 +184,9 @@ Zotero.CollectionTreeView.prototype.refresh = Zotero.Promise.coroutine(function* rows, new Zotero.CollectionTreeRow('group', groups[i]), 1, - beforeRow ? beforeRow + i + newRows : null + beforeRow ? beforeRow + newRows : null ); - newRows += yield self._expandRow(rows, row); + newRows += 1 + ( yield self._expandRow(rows, row) ); } return newRows; })