From b2d74889394d6c480df7965af151273afa249462 Mon Sep 17 00:00:00 2001 From: Alireza Date: Tue, 12 Sep 2023 22:23:46 -0400 Subject: [PATCH] fix bug --- extensions/cornerstone-dicom-seg/src/commandsModule.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/extensions/cornerstone-dicom-seg/src/commandsModule.ts b/extensions/cornerstone-dicom-seg/src/commandsModule.ts index 6b411664eaa..2bd234a560b 100644 --- a/extensions/cornerstone-dicom-seg/src/commandsModule.ts +++ b/extensions/cornerstone-dicom-seg/src/commandsModule.ts @@ -119,6 +119,7 @@ const commandsModule = ({ loadFn: async () => { // Todo: handle adding more than one segmentation const viewport = getTargetViewport({ viewportId, viewportGridService }); + const displaySetInstanceUID = viewport.displaySetInstanceUIDs[0]; const segmentation = segmentations[0]; const segmentationId = segmentation.id;