[Bug] When Create Report for Measurements fails, all measurements are lost
Describe the Bug
Added multiple measurements on multiple viewports for a study. When Create Report is selected and fails, all of the measurements created are lost
Steps to Reproduce
-
Select study and the Basic Viewer button
-
Went into 2x2 grid layout and created multiple measurements on all viewports
-
Select the Create Report button from the measurements panel
-
Entered report name: test & saved = create report request failed message appears in lower right corner
-
All measurements on the viewport & images are gone as well as the measurements in the right side measurements panel
The current behavior
measurements lost when create report is selected and fails
The expected behavior
measurements should be retained when create report selection fails so that the user does not have to recreate them again
OS
MacBook Pro - Sonoma 14.1.1
Node version
unknown
Browser
Chrome v121
This was reproducible in the OHIF dev version (https://viewer-dev.ohif.org/): 3.8.0-beta.53, Commit hash: 5bba98ed848bdf46b5ba4fc4708527cced3308b5
Fix to keep existing annotations if save fails for any reason (including external)