Skip to content

Commit

Permalink
fix: bug with key on Home
Browse files Browse the repository at this point in the history
  • Loading branch information
gwynndp committed Oct 6, 2023
1 parent 3f07396 commit 90ce59b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/Home/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,10 @@ function Home(props) {
{timeRange.map((item, index) => {
if (item.text === 'Custom Date Range') {
return (
<MenuItem onClick={() => renderDateFilter()}>
<MenuItem
key={index}
onClick={() => renderDateFilter()}
>
{timeRange[index].text}
</MenuItem>
);
Expand Down

0 comments on commit 90ce59b

Please sign in to comment.