We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 062b675 + 7516f8f commit e689e25Copy full SHA for e689e25
ui-cra/src/components/Clusters/ClusterDashboardLink.tsx
@@ -6,6 +6,12 @@ export function formatClusterDashboardUrl(clusterName: string): string {
6
if (clusterName === 'management') return '';
7
// clusterName includes namespace in manay places across the console
8
// Taking in consideration that cluster Name doesn't contain any / separator
9
+
10
+ if (!clusterName) {
11
+ // https://github.com/weaveworks/weave-gitops-enterprise/issues/2332
12
+ return '';
13
+ }
14
15
const cls = clusterName.split('/');
16
let url = cls[0];
17
if (cls.length > 1) {
0 commit comments