Skip to content

Commit efeab9f

Browse files
committed
Fix autorefresh
1 parent c7b5e47 commit efeab9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client/modules/IDE/components/Editor.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ class Editor extends React.Component {
162162
this.props.updateFileContent(this.props.file.id, this._cm.getValue());
163163
if (this.props.autorefresh && this.props.isPlaying) {
164164
this.props.clearConsole();
165-
this.props.startRefreshSketch();
165+
this.props.startSketch();
166166
}
167167
}, 1000)
168168
);
@@ -473,7 +473,7 @@ Editor.propTypes = {
473473
url: PropTypes.string
474474
}).isRequired,
475475
setUnsavedChanges: PropTypes.func.isRequired,
476-
startRefreshSketch: PropTypes.func.isRequired,
476+
startSketch: PropTypes.func.isRequired,
477477
autorefresh: PropTypes.bool.isRequired,
478478
isPlaying: PropTypes.bool.isRequired,
479479
theme: PropTypes.string.isRequired,

0 commit comments

Comments
 (0)