From 094b8157af55fee1db2349065667ae43ae746cb0 Mon Sep 17 00:00:00 2001 From: Abe Jellinek Date: Wed, 5 Jun 2024 14:33:51 -0400 Subject: [PATCH] Libraries & Collections pane: Use properties instead of global state --- chrome/content/zotero/elements/librariesCollectionsBox.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/elements/librariesCollectionsBox.js b/chrome/content/zotero/elements/librariesCollectionsBox.js index 3f57c42ac7..b51ee68457 100644 --- a/chrome/content/zotero/elements/librariesCollectionsBox.js +++ b/chrome/content/zotero/elements/librariesCollectionsBox.js @@ -138,8 +138,8 @@ import { getCSSIcon } from 'components/icons'; row.append(remove); } - let isCurrent = Zotero_Tabs.selectedType === 'library' - && ZoteroPane.collectionsView.selectedTreeRow?.id == obj.treeViewID; + let isCurrent = this.tabType === 'library' + && this.collectionTreeRow?.id == obj.treeViewID; box.classList.toggle('current', isCurrent); // Disable clicky if this is a context row or we're already in the library/collection it points to