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

* Fix observation in RT panel
This commit is contained in:
Davide Punzo authored and GitHub committed 2022-01-19 10:25:42 +01:00
1 parent d2db026158
commit 13bcba8c39
1 file changed
+2 -5
@@ -81,13 +81,10 @@ const RTPanel = ({
useEffect(() => { useEffect(() => {
updateStructureSets(); updateStructureSets();
document.addEventListener('extensiondicomrtrtloaded', updateStructureSets); document.addEventListener('rt-panel-tab-updated', updateStructureSets);
return () => { return () => {
document.removeEventListener( document.removeEventListener('rt-panel-tab-updated', updateStructureSets);
'extensiondicomrtrtloaded',
updateStructureSets
);
}; };
}, []); }, []);