Skip to content

Commit

Permalink
fix(SelectControl): changed key to use index of array
Browse files Browse the repository at this point in the history
  • Loading branch information
ImJustChew committed Nov 6, 2023
1 parent 4c7cd19 commit e917d6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/FormComponents/SelectControl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const SelectControl = <T extends FieldValues, OptionValue extends {}>({ control,
onChange={(e,v) => onChange(v)}
{...rest}
>
{options.map(option => <Option key={option.value} value={option.value}>{option.label}</Option>)}
{options.map((option, i) => <Option key={i} value={option.value}>{option.label}</Option>)}
</Select>
)}
/>
Expand Down

0 comments on commit e917d6f

Please sign in to comment.