fix(segmentation): Use active segmentation for navigation. (#5692)

This commit is contained in:
Joe Boccanfuso 2026-01-07 16:14:20 -05:00 committed by GitHub
parent 18636734ec
commit ecc74a53e0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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,