[go: up one dir, main page]

Skip to content

Commit

Permalink
🚨 Fixed map index error
Browse files Browse the repository at this point in the history
  • Loading branch information
reeeeeee-dev committed Apr 10, 2021
1 parent 4770c9c commit 83c98af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/input/select_field/component/SelectField.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export function SelectField(props) {
<select
{...props}
>
{ options.map(opt => <option value={opt.value}> {opt.label }</option>) }
{ options.map((opt, index) => <option key={index} value={opt.value}> {opt.label }</option>) }
</select>
<ChevronDown className={styles.arrow}/>
</div>
Expand Down

0 comments on commit 83c98af

Please sign in to comment.