Skip to content

Commit

Permalink
[TablePagination] Fix duplicate key error (#18988)
Browse files Browse the repository at this point in the history
  • Loading branch information
afzalsayed96 authored and oliviertassinari committed Dec 26, 2019
1 parent ae837c9 commit fec696d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ const TablePagination = React.forwardRef(function TablePagination(props, ref) {
{rowsPerPageOptions.map(rowsPerPageOption => (
<MenuItemComponent
className={classes.menuItem}
key={rowsPerPageOption}
key={rowsPerPageOption.value ? rowsPerPageOption.value : rowsPerPageOption}
value={rowsPerPageOption.value ? rowsPerPageOption.value : rowsPerPageOption}
>
{rowsPerPageOption.label ? rowsPerPageOption.label : rowsPerPageOption}
Expand Down

0 comments on commit fec696d

Please sign in to comment.