Fixed possible render bug

This commit is contained in:
Mitchell McCaffrey 2020-06-25 18:57:12 +10:00
parent e3704879c9
commit dfce8dee05

View File

@ -368,7 +368,7 @@ function MapFog({
function renderPolygonAcceptTick(shape) { function renderPolygonAcceptTick(shape) {
if (shape.data.points.length === 0) { if (shape.data.points.length === 0) {
return; return null;
} }
const isCross = shape.data.points.length < 4; const isCross = shape.data.points.length < 4;
return ( return (