Fix crash when selecting a tool while editing a fog polygon
This commit is contained in:
parent
aebc0f9267
commit
ceedceabf5
@ -340,6 +340,7 @@ function MapFog({
|
|||||||
{shapes.map(renderShape)}
|
{shapes.map(renderShape)}
|
||||||
{drawingShape && renderShape(drawingShape)}
|
{drawingShape && renderShape(drawingShape)}
|
||||||
{drawingShape &&
|
{drawingShape &&
|
||||||
|
selectedToolSettings &&
|
||||||
selectedToolSettings.type === "polygon" &&
|
selectedToolSettings.type === "polygon" &&
|
||||||
renderPolygonAcceptTick(drawingShape)}
|
renderPolygonAcceptTick(drawingShape)}
|
||||||
{editingShapes.length > 0 && editingShapes.map(renderEditingShape)}
|
{editingShapes.length > 0 && editingShapes.map(renderEditingShape)}
|
||||||
|
Loading…
Reference in New Issue
Block a user