From fed817c6d0f7e13e0f7e3657922e6af13c6b67da Mon Sep 17 00:00:00 2001 From: "hyojun.choi" Date: Wed, 11 Jun 2025 11:13:18 +0900 Subject: [PATCH] =?UTF-8?q?=EC=84=A4=EC=B9=98=EB=A9=B4=EC=97=90=20module?= =?UTF-8?q?=EC=9D=B4=20=EC=97=86=EB=8A=94=20=EA=B2=BD=EC=9A=B0=20=EC=B2=98?= =?UTF-8?q?=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hooks/module/useTrestle.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/hooks/module/useTrestle.js b/src/hooks/module/useTrestle.js index 643b8e03..b0ec3a31 100644 --- a/src/hooks/module/useTrestle.js +++ b/src/hooks/module/useTrestle.js @@ -2568,6 +2568,10 @@ export const useTrestle = () => { const getSameLineModules = (surface) => { const { direction, modules, isChidory } = surface + if (!modules || modules.length === 0) { + return + } + // 같은 단에 있는 모듈들의 리스트 let sameLineModuleList = []