[Bug] Length measurements made on MPR images persist after closing study
Describe the Bug
Length measurements made on MPR sagittal & coronal images persist after closing study and re-open again.
Able to reproduce from dev env (https://viewer-dev.ohif.org/): 3.8.0-beta.53, Commit hash: 5bba98ed848bdf46b5ba4fc4708527cced3308b5
Steps to Reproduce
- From the study list select COVID-19-NY-SBU with 477 images and go to the viewer screen
- Go into 2x2 layout and select viewport 2
- Click on the MPR tool
- Make a length measurement on each of the 3 viewports & open the measurements panel = you will see only the axial measurement in the panel
- Reselect the MPR tool to go back to 2x2 layout
- Go back to the study list screen by selecting the Open Health Imaging Foundation verbiage in the upper left corner
- Select the same study and go to the viewer screen
- Go to 2x2 layout - select viewport 2 and go to the MPR = see the length on the sagittal & coronal views
The current behavior
Sagittal & Coronal measurements made remain in study after going to the study list (but in same browser session)
The expected behavior
All measurements should be removed from the study when you leave the viewer screen
OS
MacBook Pro - Sonoma 14.1.1
Node version
unknown
Browser
Chrome v121
Will be fixed by #3927
Fixed https://github.com/OHIF/Viewers/pull/3983
Re-test in 3.8.0-rc1
We just release the OHIF 3.8, you can find more details here https://ohif.org/release-notes/3p8/ If you still encounter this issue in 3.8, please re-open this.