diff --git a/src/components/floor-plan/modal/roofAllocation/ContextRoofAllocationSetting.jsx b/src/components/floor-plan/modal/roofAllocation/ContextRoofAllocationSetting.jsx index dd8b7003..01f08028 100644 --- a/src/components/floor-plan/modal/roofAllocation/ContextRoofAllocationSetting.jsx +++ b/src/components/floor-plan/modal/roofAllocation/ContextRoofAllocationSetting.jsx @@ -186,7 +186,7 @@ export default function ContextRoofAllocationSetting(props) { handleChangeInput(e, 'hajebichi', index)} /> @@ -205,8 +205,8 @@ export default function ContextRoofAllocationSetting(props) { // handleChangeInput(e, currentAngleType === 'slope' ? 'pitch' : 'angle', index) handleChangePitch(e, index) }} - value={currentAngleType === 'slope' ? roof.pitch : roof.angle} - defaultValue={currentAngleType === 'slope' ? roof.pitch : roof.angle} + value={currentAngleType === 'slope' ? (roof.pitch || '0') : (roof.angle || '0')} + defaultValue={currentAngleType === 'slope' ? (roof.pitch || '0') : (roof.angle || '0')} /> {pitchText}