From 65ec3d5153475b865ff2d3e699351d7198a983b0 Mon Sep 17 00:00:00 2001 From: "hyojun.choi" Date: Tue, 25 Mar 2025 15:12:01 +0900 Subject: [PATCH] =?UTF-8?q?=EC=A7=80=EB=B6=95=EB=A9=B4=20=ED=95=A0?= =?UTF-8?q?=EB=8B=B9=20=EC=8B=9C=20=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hooks/usePolygon.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/hooks/usePolygon.js b/src/hooks/usePolygon.js index fd5b5a69..ccb8f60a 100644 --- a/src/hooks/usePolygon.js +++ b/src/hooks/usePolygon.js @@ -176,6 +176,10 @@ export const usePolygon = () => { * @param showDirectionText */ const drawDirectionArrow = (polygon, showDirectionText = true) => { + if (!polygon) { + return + } + if (polygon.points.length < 3) { return }