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 Nov 19, 2024
1 parent 9518fec commit 92a40ed
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 92a40ed

Please sign in to comment.