Fix bug with deleting all code
This commit is contained in:
parent
e027ae258a
commit
38032e1ef2
|
@ -29,7 +29,7 @@ class FiddleContainer extends Component {
|
|||
|
||||
}
|
||||
componentDidUpdate(prevProps){
|
||||
if(prevProps.lastFiddle !== this.props.lastFiddle){
|
||||
if(this.props.lastFiddle && (prevProps.lastFiddle !== this.props.lastFiddle)){
|
||||
this._onCodeChange(this.props.lastFiddle);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue