refactor(FE): Use index-only keys for product/delivery rows

This commit is contained in:
rstubryan
2026-01-27 12:01:53 +07:00
parent 4c336f81c7
commit 27c112e479
@@ -1494,7 +1494,7 @@ const MovementForm = ({ type = 'add', initialValues }: MovementFormProps) => {
</thead>
<tbody>
{formik.values.products?.map((product, idx) => (
<tr key={`product-row-${idx}-${product.product_id}`}>
<tr key={`product-row-${idx}`}>
{type !== 'detail' && (
<td className='align-middle!'>
<CheckboxInput
@@ -1708,9 +1708,7 @@ const MovementForm = ({ type = 'add', initialValues }: MovementFormProps) => {
</thead>
<tbody>
{formik.values.deliveries?.map((delivery, idx) => (
<tr
key={`delivery-row-${idx}-${delivery.supplier_id}-${delivery.vehicle_plate}`}
>
<tr key={`delivery-row-${idx}`}>
{type !== 'detail' && (
<td className='align-middle!'>
<CheckboxInput