From cc0687a5747f7a2b2206650560ae4064067a4265 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 8 Feb 2022 06:24:56 -0500 Subject: [PATCH] Fix `selectLibrary()` in `CollectionTree` if no `libraryID` passed --- chrome/content/zotero/collectionTree.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/collectionTree.jsx b/chrome/content/zotero/collectionTree.jsx index 62425c6484..de84ca5269 100644 --- a/chrome/content/zotero/collectionTree.jsx +++ b/chrome/content/zotero/collectionTree.jsx @@ -529,7 +529,7 @@ var CollectionTree = class CollectionTree extends LibraryTree { return promise; } - async selectLibrary(libraryID=0) { + async selectLibrary(libraryID = 1) { var row = this.getRowIndexByID('L' + libraryID); if (row === undefined) { Zotero.debug(`CollectionTree.selectLibrary(): library with ID ${libraryID} not found in collection tree`);