From 2eba4d62792c2d16893bbd96a68246f544ca92bb Mon Sep 17 00:00:00 2001 From: "hyojun.choi" Date: Tue, 2 Jul 2024 13:30:43 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B3=80=EC=88=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/util/canvas-util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/util/canvas-util.js b/src/app/util/canvas-util.js index e5272f19..2a329e8e 100644 --- a/src/app/util/canvas-util.js +++ b/src/app/util/canvas-util.js @@ -141,7 +141,7 @@ export const getStartIndex = (lines) => { let smallestX1 = lines[0].x1 let smallestY1 = lines[0].y1 - for (let i = 1; i < arr.length; i++) { + for (let i = 1; i < lines.length; i++) { if ( lines[i].x1 < smallestX1 || (lines[i].x1 === smallestX1 && lines[i].y1 < smallestY1)