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) {