mirror of
https://github.com/maputnik/editor.git
synced 2026-08-03 03:37:25 +00:00
React v16.3.0 fixes.
This commit is contained in:
@@ -79,7 +79,7 @@ export default class MapboxGlMap extends React.Component {
|
||||
}
|
||||
}
|
||||
|
||||
componentWillReceiveProps(nextProps) {
|
||||
UNSAFE_componentWillReceiveProps(nextProps) {
|
||||
if(!this.state.map) return
|
||||
const metadata = nextProps.mapStyle.metadata || {}
|
||||
MapboxGl.accessToken = metadata['maputnik:mapbox_access_token'] || tokens.mapbox
|
||||
|
||||
Reference in New Issue
Block a user