Skip to content

Commit

Permalink
Merge pull request #64126 from koorosh/backport20.1-56591
Browse files Browse the repository at this point in the history
release-20.1: ui: fix Overview screen in OSS builds
  • Loading branch information
koorosh committed May 11, 2021
2 parents 3ae6b59 + 885f9f4 commit c4aec65
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions pkg/ui/src/routes/visualization.tsx
Expand Up @@ -31,11 +31,13 @@ class NodesWrapper extends React.Component<{}, {}> {

export default function createClusterOverviewRoutes(): JSX.Element {
return (
<Route path="overview" component={ ClusterOverview } >
<Switch>
<Route exact path="/" component={() => <Redirect to="list" />}/>
<Route path="list" component={ NodesWrapper } />
</Switch>
<Route path="/overview">
<ClusterOverview>
<Switch>
<Redirect exact from="/overview" to="/overview/list" />
<Route path="/overview/list" component={ NodesWrapper } />
</Switch>
</ClusterOverview>
</Route>
);
}

0 comments on commit c4aec65

Please sign in to comment.