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 } }