Skip to content

Commit 088f0b0

Browse files
committed
Remove unnecessary ref in IDEView
1 parent e8cc08a commit 088f0b0

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

client/modules/IDE/pages/IDEView.jsx

+1-6
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,6 @@ class IDEView extends React.Component {
8080
consoleSize: props.ide.consoleIsExpanded ? 150 : 29,
8181
sidebarSize: props.ide.sidebarIsExpanded ? 160 : 20,
8282
};
83-
84-
this.previewFrame = React.createRef();
8583
}
8684

8785
componentDidMount() {
@@ -342,9 +340,7 @@ class IDEView extends React.Component {
342340
className="editor-preview-subpanel"
343341
>
344342
<Editor provideController={(ctl) => { this.cmController = ctl; }} />
345-
<Console
346-
previewFrame={this.previewFrame.current}
347-
/>
343+
<Console />
348344
</SplitPane>
349345
<section className="preview-frame-holder">
350346
<header className="preview-frame__header">
@@ -389,7 +385,6 @@ class IDEView extends React.Component {
389385
clearConsole={this.props.clearConsole}
390386
cmController={this.cmController}
391387
language={this.props.preferences.language}
392-
ref={this.previewFrame}
393388
/>
394389
</div>
395390
</section>

0 commit comments

Comments
 (0)