Skip to content

Commit

Permalink
Rollback populate viewports call to did mount
Browse files Browse the repository at this point in the history
  • Loading branch information
igoroctaviano committed Oct 18, 2023
1 parent c157643 commit 7d5b808
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/SlideViewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1704,12 +1704,13 @@ class SlideViewer extends React.Component<SlideViewerProps, SlideViewerState> {
'keyup',
this.onKeyUp
)
window.addEventListener('beforeunload', this.componentCleanup)
window.addEventListener('resize', this.onWindowResize)
}

componentDidMount (): void {
window.addEventListener('beforeunload', this.componentCleanup)
this.componentSetup()
this.populateViewports()

if (!this.props.slide.areVolumeImagesMonochrome) {
let hasICCProfile = false
Expand Down

0 comments on commit 7d5b808

Please sign in to comment.