We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 707db59 commit 1a78cebCopy full SHA for 1a78ceb
client/modules/IDE/pages/IDEView.jsx
@@ -204,6 +204,10 @@ class IDEView extends React.Component {
204
}
205
206
207
+ warnIfUnsavedChangesCaller(props) {
208
+ return warnIfUnsavedChanges(props);
209
+ }
210
+
211
render() {
212
return (
213
<div className="ide">
@@ -212,7 +216,7 @@ class IDEView extends React.Component {
216
</Helmet>
217
{this.props.toast.isVisible && <Toast />}
214
218
<Nav
215
- warnIfUnsavedChanges={() => warnIfUnsavedChanges(this.props)}
219
+ warnIfUnsavedChanges={this.warnIfUnsavedChangesCaller.bind(this, this.props)}
220
cmController={this.cmController}
221
/>
222
<Toolbar />
0 commit comments