Updated mapbox-gl and react-sortable-hoc usage

This commit is contained in:
orangemug
2018-10-08 09:31:28 +01:00
parent d17d6b43c0
commit 012e4b670e
6 changed files with 73 additions and 69 deletions

View File

@@ -18,10 +18,10 @@ class StringInput extends React.Component {
}
}
static getDerivedStateFromProps(props, state) {
return {
value: props.value || ''
};
componentDidUpdate(prevProps) {
if(this.props.value !== prevProps.value) {
this.setState({value: this.props.value})
}
}
render() {