fix: cluster-manager initial loading, redirect to startPage from any "404"-route

Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
Roman committed 2020-08-10 17:02:55 +03:00
1 parent a34da5a5c6
commit 546c5fafda
1 file changed
+2 -2
@@ -29,7 +29,7 @@ export function hasLoadedView(clusterId: ClusterId): boolean {
return !!lensViews.get(clusterId)?.isLoaded;
}
// todo: figure out how to replace webview-tag to iframe
// todo: figure out how to replace <webview>-tag to <iframe> with nodeIntegration=true
function initView(clusterId: ClusterId) {
if (!clusterId || lensViews.has(clusterId)) {
return;
@@ -102,7 +102,7 @@ export class ClusterManager extends React.Component {
<Route component={Workspaces} {...workspacesRoute}/>
<Route component={AddCluster} {...addClusterRoute}/>
<Route component={ClusterView} {...clusterViewRoute}/>
<Redirect exact from="/" to={this.startUrl}/>
<Redirect exact to={this.startUrl}/>
</Switch>
</main>
<ClustersMenu/>