From 77241d1c71e915160286a3ae4a4daf97d0fcbd86 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sat, 27 May 2023 02:33:08 -0400 Subject: [PATCH] Fix test in collection tree selectLibrary() getRowIndexByID() can only return an integer or false --- 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 9ff39ef1c1..480f18d5af 100644 --- a/chrome/content/zotero/collectionTree.jsx +++ b/chrome/content/zotero/collectionTree.jsx @@ -523,7 +523,7 @@ var CollectionTree = class CollectionTree extends LibraryTree { async selectLibrary(libraryID = 1) { var row = this.getRowIndexByID('L' + libraryID); - if (row === undefined) { + if (row === false) { Zotero.debug(`CollectionTree.selectLibrary(): library with ID ${libraryID} not found in collection tree`); return false; }