key 중복 경고 처리

This commit is contained in:
basssy 2025-02-06 11:59:30 +09:00
parent 05dbf50bb7
commit 316c3483c8

View File

@ -1188,7 +1188,7 @@ export default function Estimate({}) {
<input <input
type="text" type="text"
className="input-light" className="input-light"
value={estimateContextState?.charger} value={estimateContextState?.charger || ''}
onBlur={handleBlurCharger} onBlur={handleBlurCharger}
onChange={handleBlurCharger} onChange={handleBlurCharger}
/> />
@ -1206,7 +1206,7 @@ export default function Estimate({}) {
<input <input
type="text" type="text"
className="input-light" className="input-light"
value={estimateContextState?.objectName} value={estimateContextState?.objectName || ''}
onBlur={handleBlurObjectName} onBlur={handleBlurObjectName}
onChange={handleBlurObjectName} onChange={handleBlurObjectName}
/> />
@ -1297,13 +1297,13 @@ export default function Estimate({}) {
// //
let constructSpecificationMulti = estimateContextState?.constructSpecificationMulti?.split('、') let constructSpecificationMulti = estimateContextState?.constructSpecificationMulti?.split('、')
return ( return (
<div className={`form-flex-wrap ${style}`} key={`roof_${row}`}> <div className={`form-flex-wrap ${style}`} key={`roof_${index}_${row}`}>
<div className="input-wrap mr5" style={{ width: '610px' }}> <div className="input-wrap mr5" style={{ width: '610px' }}>
<input type="text" className="input-light" value={roofList} readOnly /> <input type="text" className="input-light" value={roofList || ''} readOnly />
</div> </div>
{constructSpecificationMulti ? ( {constructSpecificationMulti ? (
<div className="input-wrap" style={{ width: '200px' }}> <div className="input-wrap" style={{ width: '200px' }}>
<input type="text" className="input-light" value={constructSpecificationMulti[index]} readOnly /> <input type="text" className="input-light" value={constructSpecificationMulti[index] || ''} readOnly />
</div> </div>
) : null} ) : null}
</div> </div>
@ -1316,7 +1316,6 @@ export default function Estimate({}) {
<th>{getMessage('estimate.detail.remarks')}</th> <th>{getMessage('estimate.detail.remarks')}</th>
<td colSpan={3}> <td colSpan={3}>
<div className="input-wrap"> <div className="input-wrap">
{/* <input type="text" className="input-light" defaultValue={estimateContextState?.remarks || ''} onBlur={handleBlurRemarks} /> */}
<input <input
type="text" type="text"
className="input-light" className="input-light"