From d8af5b79234e8d6179e46df6e8ff947340ef1267 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adomas=20Ven=C4=8Dkauskas?= Date: Mon, 30 Aug 2021 15:18:47 +0300 Subject: [PATCH] Fix wrong collection contents shown when switching collections at startup Closes #2175 --- chrome/content/zotero/zoteroPane.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js index 639d7f0c8e..d2b7aaa2ad 100644 --- a/chrome/content/zotero/zoteroPane.js +++ b/chrome/content/zotero/zoteroPane.js @@ -1210,7 +1210,7 @@ var ZoteroPane = new function() }; - this.onCollectionSelected = async function () { + this.onCollectionSelected = Zotero.serial(async function () { try { var collectionTreeRow = this.getCollectionTreeRow(); if (!collectionTreeRow) { @@ -1262,7 +1262,7 @@ var ZoteroPane = new function() } finally { this.collectionsView.runListeners('select'); } - }; + }); /**