diff --git a/src/components/floor-plan/modal/outerlinesetting/OuterLineWall.jsx b/src/components/floor-plan/modal/outerlinesetting/OuterLineWall.jsx index f318331e..ba50f80d 100644 --- a/src/components/floor-plan/modal/outerlinesetting/OuterLineWall.jsx +++ b/src/components/floor-plan/modal/outerlinesetting/OuterLineWall.jsx @@ -388,6 +388,9 @@ export default function OuterLineWall(props) { } const handleFix = () => { + if (points.length < 3) { + return + } setPoints((prev) => { if (prev.length === 0) { return [] @@ -498,10 +501,10 @@ export default function OuterLineWall(props) { <> )}
- -