mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-11 14:24:24 +00:00
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){
|
componentDidUpdate(prevProps){
|
||||||
if(prevProps.lastFiddle !== this.props.lastFiddle){
|
if(this.props.lastFiddle && (prevProps.lastFiddle !== this.props.lastFiddle)){
|
||||||
this._onCodeChange(this.props.lastFiddle);
|
this._onCodeChange(this.props.lastFiddle);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user