From 448d1ccd61dcf22d6fba843660c3e8b8d8ed15b8 Mon Sep 17 00:00:00 2001 From: Roman Date: Tue, 18 May 2021 14:09:36 +0300 Subject: [PATCH] fix: refresh visibility of active cluster-view on switching from hotbar/catalog Signed-off-by: Roman --- src/renderer/components/cluster-manager/cluster-view.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/renderer/components/cluster-manager/cluster-view.tsx b/src/renderer/components/cluster-manager/cluster-view.tsx index 1dd9747257..1a806d7f43 100644 --- a/src/renderer/components/cluster-manager/cluster-view.tsx +++ b/src/renderer/components/cluster-manager/cluster-view.tsx @@ -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);