@@ -12,7 +12,7 @@ import {selectSchemaObjectData} from '../../store/reducers/schema/schema';
12
12
import type { AdditionalNodesProps , AdditionalTenantsProps } from '../../types/additionalProps' ;
13
13
import { cn } from '../../utils/cn' ;
14
14
import { DEFAULT_IS_TENANT_SUMMARY_COLLAPSED , DEFAULT_SIZE_TENANT_KEY } from '../../utils/constants' ;
15
- import { useAutoRefreshInterval , useTypedDispatch , useTypedSelector } from '../../utils/hooks' ;
15
+ import { useTypedDispatch , useTypedSelector } from '../../utils/hooks' ;
16
16
import { isAccessError } from '../../utils/response' ;
17
17
18
18
import ObjectGeneral from './ObjectGeneral/ObjectGeneral' ;
@@ -43,7 +43,6 @@ interface TenantProps {
43
43
}
44
44
45
45
export function Tenant ( props : TenantProps ) {
46
- const [ autoRefreshInterval ] = useAutoRefreshInterval ( ) ;
47
46
const [ summaryVisibilityState , dispatchSummaryVisibilityAction ] = React . useReducer (
48
47
paneVisibilityToggleReducerCreator ( DEFAULT_IS_TENANT_SUMMARY_COLLAPSED ) ,
49
48
undefined ,
@@ -95,12 +94,7 @@ export function Tenant(props: TenantProps) {
95
94
currentData : currentItem ,
96
95
error,
97
96
isLoading,
98
- } = overviewApi . useGetOverviewQuery (
99
- { path, database : tenantName } ,
100
- {
101
- pollingInterval : autoRefreshInterval ,
102
- } ,
103
- ) ;
97
+ } = overviewApi . useGetOverviewQuery ( { path, database : tenantName } ) ;
104
98
105
99
const preloadedData = useTypedSelector ( ( state ) =>
106
100
selectSchemaObjectData ( state , path , tenantName ) ,
0 commit comments