1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

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 2020-08-10 17:02:55 +03:00
parent a34da5a5c6
commit 546c5fafda

View File

@ -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/>