From 1fe31ac0ec515a42fe8c6e42e4edcbd5129f41a0 Mon Sep 17 00:00:00 2001 From: orangemug Date: Sun, 3 Jun 2018 17:55:46 +0100 Subject: [PATCH] Fix for bad lint error. --- src/components/map/MapboxGlMap.jsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/map/MapboxGlMap.jsx b/src/components/map/MapboxGlMap.jsx index 85faf47..ebc65b7 100644 --- a/src/components/map/MapboxGlMap.jsx +++ b/src/components/map/MapboxGlMap.jsx @@ -93,13 +93,16 @@ export default class MapboxGlMap extends React.Component { } componentDidUpdate(prevProps) { + const map = this.state.map; + if(this.props.inspectModeEnabled !== prevProps.inspectModeEnabled) { this.state.inspect.toggleInspector() } if(this.props.inspectModeEnabled) { this.state.inspect.render() } - this.state.map.showTileBoundaries = this.props.options.showTileBoundaries; + + map.showTileBoundaries = this.props.options.showTileBoundaries; } componentDidMount() {