roofMaterial 추가 전에 호출 시 에러 수정

This commit is contained in:
hyojun.choi 2025-01-13 15:55:19 +09:00
parent fe203f2905
commit 81c5baf56b

View File

@ -268,7 +268,7 @@ export const usePolygon = () => {
surfaceCompass: polygon.surfaceCompass, surfaceCompass: polygon.surfaceCompass,
moduleCompass: polygon.moduleCompass, moduleCompass: polygon.moduleCompass,
visible: isFlowDisplay, visible: isFlowDisplay,
pitch: polygon.roofMaterial.pitch ?? 4, pitch: polygon.roofMaterial?.pitch ?? 4,
parentId: polygon.id, parentId: polygon.id,
}) })