From 4d8fad93f26a8b00881369507403adcfe7c7f4ed Mon Sep 17 00:00:00 2001 From: "hyojun.choi" Date: Mon, 13 Jan 2025 10:52:28 +0900 Subject: [PATCH] =?UTF-8?q?offset=200=EC=9D=BC=20=EA=B2=BD=EC=9A=B0=20NaN?= =?UTF-8?q?=20=EC=B2=98=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hooks/useLine.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/hooks/useLine.js b/src/hooks/useLine.js index 5e0978ed..aa0e3594 100644 --- a/src/hooks/useLine.js +++ b/src/hooks/useLine.js @@ -87,6 +87,9 @@ export const useLine = () => { removePitchText(line) const { startPoint, endPoint, direction, attributes } = line const { offset, onlyOffset = false } = attributes + if (offset === 0) { + return + } let left, top