fix(segmentation): Fix segmentationid undefined 5106 (#5107)

This commit is contained in:
Vishnu Suresh Perumbavoor authored and GitHub committed 2025-07-16 13:12:47 -04:00
1 parent a7892c0d59
commit f38805e6f1
1 file changed
+3
@@ -1888,6 +1888,9 @@ function commandsModule({
const { segmentationService } = servicesManager.services;
const { activeViewportId } = viewportGridService.getState();
const activeSegmentation = segmentationService.getActiveSegmentation(activeViewportId);
if (!activeSegmentation) {
return;
}
segmentationService.addSegment(activeSegmentation.segmentationId);
},
loadSegmentationDisplaySetsForViewport: ({ viewportId, displaySetInstanceUIDs }) => {