Skip to content

Commit

Permalink
add missing component keys
Browse files Browse the repository at this point in the history
  • Loading branch information
eatyourgreens committed May 31, 2024
1 parent 77ceb56 commit af569f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/MonorepoRoutes.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ function MonorepoRoutes() {
MonorepoRoutes.createRouteFromReactElement = (element, parentRoute) => {
const monorepoRoutes = createRoutesFromReactChildren(
<Route path='projects'>
{SLUGS.map(slug => <MonorepoRoute path={slug} />)}
{SLUGS.map(slug => <MonorepoRoute key={slug} path={slug} />)}
<Route path=':locale'>
{SLUGS.map(slug => <MonorepoRoute path={slug} />)}
{SLUGS.map(slug => <MonorepoRoute key={slug} path={slug} />)}
</Route>
</Route>,
parentRoute
Expand Down

0 comments on commit af569f2

Please sign in to comment.