diff --git a/src/renderer/components/cluster-manager/cluster-view.tsx b/src/renderer/components/cluster-manager/cluster-view.tsx index 1eba3195a9..4129817fa0 100644 --- a/src/renderer/components/cluster-manager/cluster-view.tsx +++ b/src/renderer/components/cluster-manager/cluster-view.tsx @@ -68,6 +68,11 @@ class NonInjectedClusterView extends React.Component { bindEvents() { disposeOnUnmount(this, [ reaction(() => this.clusterId, async (clusterId) => { + // TODO: replace with better handling + if (clusterId && !this.props.entityRegistry.getById(clusterId)) { + return this.props.navigateToCatalog(); // redirect to catalog when the clusterId does not correspond to an entity + } + this.props.clusterFrames.setVisibleCluster(clusterId); this.props.clusterFrames.initView(clusterId); requestClusterActivation(clusterId, false); // activate and fetch cluster's state from main