Skip to content

Commit

Permalink
Remove unnecessary keys
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Jun 9, 2021
1 parent fe19acd commit 41aae13
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions packages/material-ui/src/Rating/Rating.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,15 +249,11 @@ function RatingItem(props) {
);

if (readOnly) {
return (
<span key={itemValue} {...labelProps}>
{container}
</span>
);
return <span {...labelProps}>{container}</span>;
}

return (
<React.Fragment key={itemValue}>
<React.Fragment>
<RatingLabel
styleProps={{ ...styleProps, emptyValueFocused: undefined }}
htmlFor={id}
Expand Down

0 comments on commit 41aae13

Please sign in to comment.