mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Register cluster page component properly to a route (#1688)
* remove observer from app class Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com> * proper fix Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
parent
993061e4a7
commit
8a4be72740
@ -157,9 +157,7 @@ export class App extends React.Component {
|
|||||||
const page = clusterPageRegistry.getByPageMenuTarget(menu.target);
|
const page = clusterPageRegistry.getByPageMenuTarget(menu.target);
|
||||||
|
|
||||||
if (page) {
|
if (page) {
|
||||||
const pageComponent = () => <page.components.Page />;
|
return <Route key={`extension-tab-layout-route-${index}`} path={page.routePath} exact={page.exact} component={page.components.Page}/>;
|
||||||
|
|
||||||
return <Route key={`extension-tab-layout-route-${index}`} path={page.routePath} exact={page.exact} component={pageComponent}/>;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user