Fix selectLibrary() in CollectionTree if no libraryID passed

This commit is contained in:
Dan Stillman 2022-02-08 06:24:56 -05:00
parent 0d2cfef160
commit cc0687a574

View file

@ -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`);