React v16.3.0 fixes.

This commit is contained in:
orangemug
2018-05-17 11:24:39 +01:00
parent 79b251d8b9
commit 77da0a6d30
8 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ class Gist extends React.Component {
}
}
componentWillReceiveProps(nextProps) {
UNSAFE_componentWillReceiveProps(nextProps) {
this.setState({
...this.state,
preview: !!(nextProps.mapStyle.metadata || {})['maputnik:openmaptiles_access_token']