@@ -10,6 +10,7 @@ import {
10
10
useFeatureFlagsAvailable ,
11
11
useTopicDataAvailable ,
12
12
} from '../../../store/reducers/capabilities/hooks' ;
13
+ import { useClusterBaseInfo } from '../../../store/reducers/cluster/cluster' ;
13
14
import { TENANT_DIAGNOSTICS_TABS_IDS } from '../../../store/reducers/tenant/constants' ;
14
15
import { setDiagnosticsTab } from '../../../store/reducers/tenant/tenant' ;
15
16
import type { AdditionalNodesProps , AdditionalTenantsProps } from '../../../types/additionalProps' ;
@@ -49,6 +50,7 @@ const b = cn('kv-tenant-diagnostics');
49
50
50
51
function Diagnostics ( props : DiagnosticsProps ) {
51
52
const { path, database, type, subType} = useCurrentSchema ( ) ;
53
+ const { control_plane : controlPlane } = useClusterBaseInfo ( ) ;
52
54
const containerRef = React . useRef < HTMLDivElement > ( null ) ;
53
55
const dispatch = useTypedDispatch ( ) ;
54
56
const { diagnosticsTab = TENANT_DIAGNOSTICS_TABS_IDS . overview } = useTypedSelector (
@@ -65,7 +67,7 @@ function Diagnostics(props: DiagnosticsProps) {
65
67
hasFeatureFlags,
66
68
hasTopicData,
67
69
isTopLevel : path === database ,
68
- hasBackups : typeof uiFactory . renderBackups === 'function' ,
70
+ hasBackups : typeof uiFactory . renderBackups === 'function' && Boolean ( controlPlane ) ,
69
71
} ) ;
70
72
let activeTab = pages . find ( ( el ) => el . id === diagnosticsTab ) ;
71
73
if ( ! activeTab ) {
0 commit comments