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>
<SelectInput
required
key={`project-flock-${formik.values.project_flock_kandang_id}`}
label='Project Flock'
value={formik.values.project_flock_kandang ?? undefined}
onChange={projectFlockKandangChangeHandler}
@@ -1249,6 +1250,7 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => {
<td>
<SelectInput
required
key={`stock-product-${idx}-${stock.product_warehouse_id}`}
value={
unifiedStockProducts.find(
(product) =>