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:
Fredrik Adelöw
2020-11-30 14:07:04 +01:00
committed by GitHub
+7 -1
View File
@@ -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;
}