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

This commit is contained in:
Vishnu Suresh Perumbavoor 2025-07-16 22:42:47 +05:30 committed by GitHub
parent a7892c0d59
commit f38805e6f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 }) => {