mirror of
https://github.com/maputnik/editor.git
synced 2025-12-25 23:50:02 +00:00
Upgrade inspect
This commit is contained in:
@@ -73,7 +73,6 @@ export default class MapboxGlMap extends React.Component {
|
||||
|
||||
componentWillReceiveProps(nextProps) {
|
||||
MapboxGl.accessToken = nextProps.accessToken
|
||||
|
||||
if(!this.state.map) return
|
||||
|
||||
if(!nextProps.inspectModeEnabled) {
|
||||
@@ -88,7 +87,7 @@ export default class MapboxGlMap extends React.Component {
|
||||
this.state.inspect.toggleInspector()
|
||||
}
|
||||
if(this.props.inspectModeEnabled) {
|
||||
this.state.inspect._renderInspector()
|
||||
this.state.inspect.render()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user