From 578a920b6de82b9b9690d4ea75c48fdb03f54fb2 Mon Sep 17 00:00:00 2001 From: orangemug Date: Mon, 13 Apr 2020 08:39:23 +0100 Subject: [PATCH] Fixed crash raised in issue #647 --- src/components/map/MapboxGlMap.jsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/map/MapboxGlMap.jsx b/src/components/map/MapboxGlMap.jsx index 02ddc8d..d48f423 100644 --- a/src/components/map/MapboxGlMap.jsx +++ b/src/components/map/MapboxGlMap.jsx @@ -110,11 +110,11 @@ export default class MapboxGlMap extends React.Component { this.state.inspect._popupBlocked = false; this.state.inspect.toggleInspector() } - if(this.props.inspectModeEnabled) { - this.state.inspect.render() - } - if (map) { + if (this.props.inspectModeEnabled) { + this.state.inspect.render(); + } + map.showTileBoundaries = this.props.options.showTileBoundaries; map.showCollisionBoxes = this.props.options.showCollisionBoxes; map.showOverdrawInspector = this.props.options.showOverdrawInspector;