Merge pull request '[1130] 【HANASYS DESIGN】ラックレス工法で千鳥配置できない' (#156) from dev into prd-deploy

Reviewed-on: #156
This commit is contained in:
ysCha 2025-06-26 11:08:14 +09:00
commit 3ac9e56def

View File

@ -1556,7 +1556,7 @@ export const useTrestle = () => {
//랙 없음 인 경우 지지금구 설치 //랙 없음 인 경우 지지금구 설치
const installBracketWithOutRack = (surface, exposedBottomModules, leftExposedHalfBottomModules, rightExposedHalfBottomPoints, isChidory) => { const installBracketWithOutRack = (surface, exposedBottomModules, leftExposedHalfBottomModules, rightExposedHalfBottomPoints, isChidory) => {
let { rackQty, rackIntvlPct, moduleIntvlHor, moduleIntvlVer, lessSupFitQty, lessSupFitIntvlPct, moduleMaxRows } = surface.trestleDetail let { rackQty, rackIntvlPct, moduleIntvlHor, moduleIntvlVer, lessSupFitQty, lessSupFitIntvlPct, moduleMaxRows } = surface.trestleDetail
const checkList = [] let checkList = []
exposedBottomModules.forEach((module) => { exposedBottomModules.forEach((module) => {
checkList.push(module.leftRows, module.rightRows, module.centerRows) checkList.push(module.leftRows, module.rightRows, module.centerRows)
@ -1569,6 +1569,9 @@ export const useTrestle = () => {
rightExposedHalfBottomPoints.forEach((module) => { rightExposedHalfBottomPoints.forEach((module) => {
checkList.push(module.leftRows, module.rightRows, module.centerRows) checkList.push(module.leftRows, module.rightRows, module.centerRows)
}) })
checkList = checkList.filter((item) => item !== undefined && item !== null)
const isAllCheckMaxRows = checkList.every((item) => item <= moduleMaxRows) const isAllCheckMaxRows = checkList.every((item) => item <= moduleMaxRows)
if (!isAllCheckMaxRows) { if (!isAllCheckMaxRows) {