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
type="text"
className="input-light"
value={estimateContextState?.charger}
value={estimateContextState?.charger || ''}
onBlur={handleBlurCharger}
onChange={handleBlurCharger}
/>
@ -1206,7 +1206,7 @@ export default function Estimate({}) {
<input
type="text"
className="input-light"
value={estimateContextState?.objectName}
value={estimateContextState?.objectName || ''}
onBlur={handleBlurObjectName}
onChange={handleBlurObjectName}
/>
@ -1297,13 +1297,13 @@ export default function Estimate({}) {
//
let constructSpecificationMulti = estimateContextState?.constructSpecificationMulti?.split('、')
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' }}>
<input type="text" className="input-light" value={roofList} readOnly />
<input type="text" className="input-light" value={roofList || ''} readOnly />
</div>
{constructSpecificationMulti ? (
<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>
) : null}
</div>
@ -1316,7 +1316,6 @@ export default function Estimate({}) {
<th>{getMessage('estimate.detail.remarks')}</th>
<td colSpan={3}>
<div className="input-wrap">
{/* <input type="text" className="input-light" defaultValue={estimateContextState?.remarks || ''} onBlur={handleBlurRemarks} /> */}
<input
type="text"
className="input-light"