IDC #2657: fix rt struct panel update (#2666)

* Fix observation in RT panel
This commit is contained in:
Davide Punzo 2022-01-19 10:25:42 +01:00 committed by GitHub
parent d2db026158
commit 13bcba8c39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -81,13 +81,10 @@ const RTPanel = ({
useEffect(() => {
updateStructureSets();
document.addEventListener('extensiondicomrtrtloaded', updateStructureSets);
document.addEventListener('rt-panel-tab-updated', updateStructureSets);
return () => {
document.removeEventListener(
'extensiondicomrtrtloaded',
updateStructureSets
);
document.removeEventListener('rt-panel-tab-updated', updateStructureSets);
};
}, []);