Merge pull request #3480 from virtuoushub/virtuoushub/add-key-prop-to-routes-list
Avoid "Each child in a list should have a unique "key" prop." Warning
This commit is contained in:
@@ -184,7 +184,13 @@ export class PrivateAppImpl implements BackstageApp {
|
||||
}
|
||||
}
|
||||
|
||||
routes.push(<Route path="/*" element={<NotFoundErrorPage />} />);
|
||||
routes.push(
|
||||
<Route
|
||||
key="not-found-error-page"
|
||||
path="/*"
|
||||
element={<NotFoundErrorPage />}
|
||||
/>,
|
||||
);
|
||||
|
||||
return routes;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user