pass currentDisplaySetUID
This commit is contained in:
parent
f08ce57c0c
commit
71544df16f
@ -23,7 +23,7 @@ function PanelStudyBrowserTracking({
|
||||
// Tabs --> Studies --> DisplaySets --> Thumbnails
|
||||
const [{ StudyInstanceUIDs }, dispatchImageViewer] = useImageViewer();
|
||||
const [
|
||||
{ activeViewportIndex, viewports },
|
||||
{ activeViewportIndex, viewports, currentDisplaySetData },
|
||||
viewportGridService,
|
||||
] = useViewportGrid();
|
||||
const [
|
||||
@ -45,6 +45,9 @@ function PanelStudyBrowserTracking({
|
||||
});
|
||||
};
|
||||
|
||||
const currentDisplaySetInstanceUID =
|
||||
currentDisplaySetData.displaySetInstanceUID || '';
|
||||
|
||||
// TODO: Should this be somewhere else? Feels more like a mode "lifecycle" setup/destroy?
|
||||
useEffect(() => {
|
||||
const { unsubscribe } = MeasurementService.subscribe(
|
||||
@ -244,6 +247,7 @@ function PanelStudyBrowserTracking({
|
||||
});
|
||||
}}
|
||||
onClickThumbnail={onClickThumbnailHandler}
|
||||
currentDisplaySetInstanceUID={currentDisplaySetInstanceUID}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user