Skip to content

Commit 590fa2d

Browse files
authored
fix: check for correct controlPlane id (#3081)
1 parent ee85ada commit 590fa2d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/utils/monitoringVisibility.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@ export function canShowTenantMonitoring(
1212
controlPlane?: ControlPlane,
1313
clusterMonitoring?: MetaBaseClusterInfo['solomon'],
1414
): boolean {
15-
if (controlPlane) {
16-
return Boolean(controlPlane.id);
17-
}
18-
return Boolean(clusterMonitoring);
15+
return Boolean(clusterMonitoring) || Boolean(controlPlane?.id);
1916
}
2017

2118
/**

0 commit comments

Comments
 (0)