From ceedceabf57a7c79e4df3a5e11d7648a91099a8b Mon Sep 17 00:00:00 2001 From: Mitchell McCaffrey Date: Sun, 21 Jun 2020 16:55:58 +1000 Subject: [PATCH] Fix crash when selecting a tool while editing a fog polygon --- src/components/map/MapFog.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/map/MapFog.js b/src/components/map/MapFog.js index 9a06e9b..c09b2ee 100644 --- a/src/components/map/MapFog.js +++ b/src/components/map/MapFog.js @@ -340,6 +340,7 @@ function MapFog({ {shapes.map(renderShape)} {drawingShape && renderShape(drawingShape)} {drawingShape && + selectedToolSettings && selectedToolSettings.type === "polygon" && renderPolygonAcceptTick(drawingShape)} {editingShapes.length > 0 && editingShapes.map(renderEditingShape)}