feat(FE-114): add unique keys to SelectInput components in RecordingForm for improved rendering

This commit is contained in:
rstubryan
2025-10-30 12:50:56 +07:00
parent 2307035717
commit be68353b38
@@ -889,6 +889,7 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => {
<div> <div>
<SelectInput <SelectInput
required required
key={`project-flock-${formik.values.project_flock_kandang_id}`}
label='Project Flock' label='Project Flock'
value={formik.values.project_flock_kandang ?? undefined} value={formik.values.project_flock_kandang ?? undefined}
onChange={projectFlockKandangChangeHandler} onChange={projectFlockKandangChangeHandler}
@@ -1249,6 +1250,7 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => {
<td> <td>
<SelectInput <SelectInput
required required
key={`stock-product-${idx}-${stock.product_warehouse_id}`}
value={ value={
unifiedStockProducts.find( unifiedStockProducts.find(
(product) => (product) =>