fix(segmentation): Use active segmentation for navigation. (#5692)
This commit is contained in:
parent
18636734ec
commit
ecc74a53e0
@ -87,7 +87,10 @@ function NavigationComponent({ viewportId }: { viewportId: string }) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const segmentationId = segmentationsWithRepresentations[0].segmentation.segmentationId;
|
const activeSegmentationWithRepresentation = segmentationsWithRepresentations.find(
|
||||||
|
segmentation => segmentation?.representation?.active
|
||||||
|
);
|
||||||
|
const segmentationId = activeSegmentationWithRepresentation.segmentation.segmentationId;
|
||||||
|
|
||||||
utils.handleSegmentChange({
|
utils.handleSegmentChange({
|
||||||
direction,
|
direction,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user