fix: use the previewMounted connected to redux (#44336)

This commit is contained in:
Oliver Eyton-Williams
2021-12-01 20:01:12 +01:00
committed by GitHub
parent 23e241bbc0
commit b89c31c0d1

View File

@ -103,6 +103,7 @@ interface ShowClassicProps {
updateChallengeMeta: (arg0: ChallengeMeta) => void;
openModal: (modal: string) => void;
setEditorFocusability: (canFocus: boolean) => void;
previewMounted: () => void;
}
interface ShowClassicState {
@ -375,7 +376,7 @@ class ShowClassic extends Component<ShowClassicProps, ShowClassicState> {
<Preview
className='full-height'
disableIframe={this.state.resizing}
previewMounted={previewMounted}
previewMounted={this.props.previewMounted}
/>
);
}