diff --git a/dashboard/src/containers/RoutesContainer/Routes.tsx b/dashboard/src/containers/RoutesContainer/Routes.tsx index 8208f684a55..7940fdbf6a1 100644 --- a/dashboard/src/containers/RoutesContainer/Routes.tsx +++ b/dashboard/src/containers/RoutesContainer/Routes.tsx @@ -51,16 +51,11 @@ class Routes extends React.Component { return ( - {Object.keys(routes).map(route => ( - + {Object.entries(routes).map(([route, component]) => ( + ))} - {Object.keys(privateRoutes).map(route => ( - + {Object.entries(privateRoutes).map(([route, component]) => ( + ))} {/* If the route doesn't match any expected path redirect to a 404 page */}