mirror of
https://github.com/maputnik/editor.git
synced 2026-06-18 05:07:25 +00:00
React v16.3.0 fixes.
This commit is contained in:
@@ -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']
|
||||
|
||||
Reference in New Issue
Block a user