diff --git a/src/hooks/common/useRoofFn.js b/src/hooks/common/useRoofFn.js index 31e31d13..afe1c71e 100644 --- a/src/hooks/common/useRoofFn.js +++ b/src/hooks/common/useRoofFn.js @@ -12,8 +12,8 @@ export function useRoofFn() { const ratio = window.devicePixelRatio || 1 const layout = roofMaterial.layout - let width = roofMaterial.width / 10 - let height = roofMaterial.length / 10 + let width = (roofMaterial.width ?? 226) / 10 + let height = (roofMaterial.length ?? 158) / 10 let roofStyle = 2 const inputPatternSize = { width: width, height: height } //임시 사이즈 const patternSize = { ...inputPatternSize } // 입력된 값을 뒤집기 위해