Fix wrong collection contents shown when switching collections at startup

Closes #2175
This commit is contained in:
Adomas Venčkauskas 2021-08-30 15:18:47 +03:00
parent d4b3ed7fd8
commit d8af5b7923

View file

@ -1210,7 +1210,7 @@ var ZoteroPane = new function()
}; };
this.onCollectionSelected = async function () { this.onCollectionSelected = Zotero.serial(async function () {
try { try {
var collectionTreeRow = this.getCollectionTreeRow(); var collectionTreeRow = this.getCollectionTreeRow();
if (!collectionTreeRow) { if (!collectionTreeRow) {
@ -1262,7 +1262,7 @@ var ZoteroPane = new function()
} finally { } finally {
this.collectionsView.runListeners('select'); this.collectionsView.runListeners('select');
} }
}; });
/** /**