Don't try to hide/show Retracted Items if ZoteroPane is still loading

This commit is contained in:
Dan Stillman 2025-12-19 16:00:57 -05:00
parent 7422538fb3
commit bf9e5d3a83

View file

@ -306,6 +306,7 @@ Zotero.Retractions = {
|| (current && !Zotero.Prefs.getVirtualCollectionStateForLibrary(libraryID, 'retracted')))) {
let promises = [];
for (let zp of Zotero.getZoteroPanes()) {
if (!zp.loaded) continue;
promises.push(zp.setVirtual(libraryID, 'retracted', current));
zp.hideRetractionBanner();
}