diff --git a/src/hooks/usePolygon.js b/src/hooks/usePolygon.js index 2a024626..99845d46 100644 --- a/src/hooks/usePolygon.js +++ b/src/hooks/usePolygon.js @@ -177,6 +177,12 @@ export const usePolygon = () => { if (polygon.points.length < 3) { return } + // 모듈있으면 화살표 이미 그려져 있으므로 수행 안함 + const hasModules = canvas.getObjects().filter((obj) => obj.name === POLYGON_TYPE.MODULE).length > 0 + + if (hasModules) { + return + } const direction = polygon.direction if (!direction) { return