Skip to content

Commit ff609a5

Browse files
authored
Fix radiogroup console error (#2414)
1 parent 5284166 commit ff609a5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/components/RadioGroup/radioItems.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,10 @@ export default function RadioItems(props) {
1414
const key = `radio-${index}`;
1515
const { description, disabled, ...rest } = option;
1616
return (
17-
<StyledItemContainer data-id="input-radiogroup_container">
17+
<StyledItemContainer key={key} data-id="input-radiogroup_container">
1818
<Radio
1919
// eslint-disable-next-line react/jsx-props-no-spreading
2020
{...rest}
21-
key={key}
2221
onChange={onChange}
2322
checked={isChecked(option)}
2423
ariaDescribedby={ariaDescribedby}

0 commit comments

Comments
 (0)