fix(segmentation): black preview when loading a seg, and crash on opening panel (#4602)
This commit is contained in:
1 parent
921e8f93b7
commit
faf5515e4b
3 files changed
+19
-12
No files matched your search
@@ -243,13 +243,15 @@ export default function PanelSegmentation({
|
||||
const firstImageId = referencedImageIds[0];
|
||||
|
||||
const instance = metaData.get('instance', firstImageId);
|
||||
const { SOPInstanceUID, SeriesInstanceUID } = instance;
|
||||
const SOPInstanceUID = instance.SOPInstanceUID || instance.SopInstanceUID;
|
||||
const SeriesInstanceUID = instance.SeriesInstanceUID;
|
||||
|
||||
const displaySet = displaySetService.getDisplaySetForSOPInstanceUID(
|
||||
SOPInstanceUID,
|
||||
SeriesInstanceUID
|
||||
);
|
||||
const isExportable = displaySet.isReconstructable;
|
||||
|
||||
const isExportable = displaySet?.isReconstructable;
|
||||
|
||||
return {
|
||||
segmentationId,
|
||||
|
||||
Reference in new issue
Block a user