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 { ...@@ -36,9 +36,10 @@ class EditWidgetSimulationControl extends Component {
}; };
} }
componentWillReceiveProps(nextProps) { static getDerivedStateFromProps(props, state){
// Update state's widget with props return{
this.setState({ widget: nextProps.widget }); widget: props.widget
};
} }
render() { 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