fix: unregister note preview section when closing workspace

fix: #996
This commit is contained in:
windingwind 2024-06-04 16:10:27 +08:00
parent b8f3c5dcfd
commit 262650dfab

View File

@ -111,6 +111,9 @@ export function openNotePreview(
);
}
},
onDestroy: () => {
Zotero.ItemPaneManager.unregisterSection(key || "");
},
});
const workspace = getWorkspaceByUID(workspaceUID);