Skip to content

Commit

Permalink
IDC OHIF#2657: fix rt struct panel update (OHIF#2666)
Browse files Browse the repository at this point in the history
* Fix observation in RT panel
  • Loading branch information
Punzo committed Mar 10, 2022
1 parent b4c9f52 commit 5e9d5de
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions extensions/dicom-rt/src/components/RTPanel/RTPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};
}, []);

Expand Down

0 comments on commit 5e9d5de

Please sign in to comment.