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

This commit is contained in:
Ibrahim 2024-10-17 09:42:05 -04:00 committed by GitHub
parent fa2435d5e9
commit 433cc8089d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 }),
};
}