From 808f497f43ed5aa11a3d2582283ea8394544837e Mon Sep 17 00:00:00 2001 From: "hyojun.choi" Date: Tue, 18 Feb 2025 15:40:17 +0900 Subject: [PATCH] =?UTF-8?q?=ED=9A=8C=EB=A1=9C=20=EC=84=A4=EC=A0=95=20?= =?UTF-8?q?=EC=9D=B4=ED=9B=84=20=EA=B2=AC=EC=A0=81=EC=84=9C=20=EC=95=88?= =?UTF-8?q?=EB=84=98=EC=96=B4=EA=B0=80=EB=8A=94=20=ED=98=84=EC=83=81=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hooks/module/useTrestle.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/hooks/module/useTrestle.js b/src/hooks/module/useTrestle.js index 59b0ff07..ebbfd7cf 100644 --- a/src/hooks/module/useTrestle.js +++ b/src/hooks/module/useTrestle.js @@ -27,7 +27,7 @@ export const useTrestle = () => { if (notAllocationModules.length > 0) { swalFire({ text: '回路番号が設定されていないモジュールがあります。 番号を設定しなおすか、 パネルを削除してください。', icon: 'error' }) setIsGlobalLoading(false) - return null + return } try { //처마력바가 체크되어 있는 경우 exposedBottomPoints를 이용해 처마력바 그려줘야함. @@ -598,13 +598,14 @@ export const useTrestle = () => { surface.set({ quotationParam, isComplete: true }) }) + return true } catch (e) { // 에러 발생시 가대 초기화 console.error(e) // clear() setViewCircuitNumberTexts(true) setIsGlobalLoading(false) - return null + return false } }