From ecc74a53e097b13851ea8f7be0cabab6b0d82b7f Mon Sep 17 00:00:00 2001 From: Joe Boccanfuso <109477394+jbocce@users.noreply.github.com> Date: Wed, 7 Jan 2026 16:14:20 -0500 Subject: [PATCH] fix(segmentation): Use active segmentation for navigation. (#5692) --- .../components/NavigationComponent/NavigationComponent.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/extensions/cornerstone/src/components/NavigationComponent/NavigationComponent.tsx b/extensions/cornerstone/src/components/NavigationComponent/NavigationComponent.tsx index 6fb85cf20..03edf10b7 100644 --- a/extensions/cornerstone/src/components/NavigationComponent/NavigationComponent.tsx +++ b/extensions/cornerstone/src/components/NavigationComponent/NavigationComponent.tsx @@ -87,7 +87,10 @@ function NavigationComponent({ viewportId }: { viewportId: string }) { return; } - const segmentationId = segmentationsWithRepresentations[0].segmentation.segmentationId; + const activeSegmentationWithRepresentation = segmentationsWithRepresentations.find( + segmentation => segmentation?.representation?.active + ); + const segmentationId = activeSegmentationWithRepresentation.segmentation.segmentationId; utils.handleSegmentChange({ direction,