From 66b626b3ead093ba344da8974044f756ced8ee97 Mon Sep 17 00:00:00 2001 From: "hyojun.choi" Date: Thu, 26 Jun 2025 09:52:04 +0900 Subject: [PATCH] =?UTF-8?q?[1130]=20=E3=80=90HANASYS=20DESIGN=E3=80=91?= =?UTF-8?q?=E3=83=A9=E3=83=83=E3=82=AF=E3=83=AC=E3=82=B9=E5=B7=A5=E6=B3=95?= =?UTF-8?q?=E3=81=A7=E5=8D=83=E9=B3=A5=E9=85=8D=E7=BD=AE=E3=81=A7=E3=81=8D?= =?UTF-8?q?=E3=81=AA=E3=81=84=20=EB=9E=99=EB=A6=AC=EC=8A=A4=20=EA=B3=B5?= =?UTF-8?q?=EB=B2=95=EC=9D=B8=20=EA=B2=BD=EC=9A=B0=20=EC=84=A4=EC=B9=98=20?= =?UTF-8?q?=EC=95=88=EB=90=98=EB=8A=94=20=ED=98=84=EC=83=81=20=EC=88=98?= =?UTF-8?q?=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, 4 insertions(+), 1 deletion(-) diff --git a/src/hooks/module/useTrestle.js b/src/hooks/module/useTrestle.js index 4da85212..df3fa397 100644 --- a/src/hooks/module/useTrestle.js +++ b/src/hooks/module/useTrestle.js @@ -1556,7 +1556,7 @@ export const useTrestle = () => { //랙 없음 인 경우 지지금구 설치 const installBracketWithOutRack = (surface, exposedBottomModules, leftExposedHalfBottomModules, rightExposedHalfBottomPoints, isChidory) => { let { rackQty, rackIntvlPct, moduleIntvlHor, moduleIntvlVer, lessSupFitQty, lessSupFitIntvlPct, moduleMaxRows } = surface.trestleDetail - const checkList = [] + let checkList = [] exposedBottomModules.forEach((module) => { checkList.push(module.leftRows, module.rightRows, module.centerRows) @@ -1569,6 +1569,9 @@ export const useTrestle = () => { rightExposedHalfBottomPoints.forEach((module) => { checkList.push(module.leftRows, module.rightRows, module.centerRows) }) + + checkList = checkList.filter((item) => item !== undefined && item !== null) + const isAllCheckMaxRows = checkList.every((item) => item <= moduleMaxRows) if (!isAllCheckMaxRows) {