mirror of
https://github.com/maputnik/editor.git
synced 2026-06-23 15:47:27 +00:00
Fix for bad lint error.
This commit is contained in:
@@ -93,13 +93,16 @@ export default class MapboxGlMap extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
componentDidUpdate(prevProps) {
|
componentDidUpdate(prevProps) {
|
||||||
|
const map = this.state.map;
|
||||||
|
|
||||||
if(this.props.inspectModeEnabled !== prevProps.inspectModeEnabled) {
|
if(this.props.inspectModeEnabled !== prevProps.inspectModeEnabled) {
|
||||||
this.state.inspect.toggleInspector()
|
this.state.inspect.toggleInspector()
|
||||||
}
|
}
|
||||||
if(this.props.inspectModeEnabled) {
|
if(this.props.inspectModeEnabled) {
|
||||||
this.state.inspect.render()
|
this.state.inspect.render()
|
||||||
}
|
}
|
||||||
this.state.map.showTileBoundaries = this.props.options.showTileBoundaries;
|
|
||||||
|
map.showTileBoundaries = this.props.options.showTileBoundaries;
|
||||||
}
|
}
|
||||||
|
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
|
|||||||
Reference in New Issue
Block a user