Fixing measurement delete action
This commit is contained in:
1 parent
20a355054d
commit
efa7d48da1
8 files changed
+82
-75
No files matched your search
@@ -5,6 +5,12 @@ OHIF.measurements.syncMeasurementAndToolData = measurement => {
|
||||
OHIF.log.info('syncMeasurementAndToolData');
|
||||
|
||||
const toolState = cornerstoneTools.globalImageIdSpecificToolStateManager.saveToolState();
|
||||
|
||||
// Stop here if the metadata for the measurement's study is not loaded yet
|
||||
const { studyInstanceUid } = measurement;
|
||||
const metadata = OHIF.viewer.StudyMetadataList.findBy({ studyInstanceUid });
|
||||
if (!metadata) return;
|
||||
|
||||
const imageId = OHIF.viewerbase.getImageIdForImagePath(measurement.imagePath);
|
||||
const toolType = measurement.toolType;
|
||||
|
||||
|
||||
Reference in new issue
Block a user