NaN일 경우 처리 추가

This commit is contained in:
hyojun.choi 2025-07-11 10:10:55 +09:00
parent b2e5055ed1
commit c70ab4e7e9

View File

@ -2121,6 +2121,7 @@ export function useModuleBasicSetting(tabNum) {
let calcModuleWidthCount = calcAreaWidth / (width + intvHor) //뺀 공간에서 모듈을 몇개를 넣을수 있는지 확인하는 로직
let calcAreaHeight = flowLines.bottom.y1 - flowLines.top.y1
calcAreaHeight = isNaN(calcAreaHeight) ? moduleSetupSurface.height : calcAreaHeight
let calcModuleHeightCount = calcAreaHeight / (height + intvVer)
if (type === MODULE_SETUP_TYPE.LAYOUT) {