fix(3d-viewport): exception was being thrown and 3d viewpot not getting resized. (#4366)

This commit is contained in:
Ibrahim authored and GitHub committed 2024-10-17 09:42:05 -04:00
1 parent fa2435d5e9
commit 433cc8089d
1 file changed
+1 -1
@@ -242,7 +242,7 @@ class CornerstoneViewportService extends PubSubService implements IViewportServi
return {
id: positionPresentationId,
viewportType: viewportInfo.getViewportType(),
viewReference: csViewport.getViewReference(),
viewReference: csViewport instanceof VolumeViewport3D ? null : csViewport.getViewReference(),
position: csViewport.getViewPresentation({ pan: true, zoom: true }),
};
}