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

fix: refresh visibility of active cluster-view on switching from hotbar/catalog

Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
Roman 2021-05-18 14:09:36 +03:00
parent 8882e65456
commit 448d1ccd61

View File

@ -60,7 +60,8 @@ export class ClusterView extends React.Component {
bindEvents() {
disposeOnUnmount(this, [
reaction(() => this.clusterId, clusterId => {
reaction(() => this.clusterId, async (clusterId) => {
refreshViews(clusterId); // refresh visibility of active cluster
initView(clusterId); // init cluster-view (iframe), requires parent container #lens-views to be in DOM
requestMain(clusterActivateHandler, clusterId, false); // activate and fetch cluster's state from main
catalogEntityRegistry.activeEntity = catalogEntityRegistry.getById(clusterId);