File tree 1 file changed +5
-3
lines changed
client/modules/IDE/components 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ class PreviewFrame extends React.Component {
27
27
super ( props ) ;
28
28
this . handleConsoleEvent = this . handleConsoleEvent . bind ( this ) ;
29
29
this . state = {
30
- changed : false
30
+ toggle : false
31
31
} ;
32
32
}
33
33
@@ -311,7 +311,9 @@ class PreviewFrame extends React.Component {
311
311
}
312
312
313
313
renderSketch ( ) {
314
- this . state . changed = ! this . state . changed ;
314
+ this . setState ( {
315
+ toggle : ! this . state . toggle
316
+ } ) ;
315
317
if ( this . props . endSketchRefresh ) {
316
318
this . props . endSketchRefresh ( ) ;
317
319
}
@@ -323,7 +325,7 @@ class PreviewFrame extends React.Component {
323
325
< Frame
324
326
className = "preview-frame"
325
327
initialContent = { this . injectLocalFiles ( ) }
326
- key = { this . state . changed }
328
+ key = { this . state . toggle }
327
329
>
328
330
< FrameContextConsumer >
329
331
{
You can’t perform that action at this time.
0 commit comments