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 committed 2021-05-18 14:16:06 +03:00
1 parent 8882e65456
commit 448d1ccd61
1 file changed
+2 -1
@@ -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);