Commit 95c7a865 authored by Sonja Happ's avatar Sonja Happ

Remove one more componentWillUpdate #212

parent e8806892
......@@ -36,9 +36,10 @@ class EditWidgetSimulationControl extends Component {
};
}
componentWillReceiveProps(nextProps) {
// Update state's widget with props
this.setState({ widget: nextProps.widget });
static getDerivedStateFromProps(props, state){
return{
widget: props.widget
};
}
render() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment