@@ -12,7 +12,7 @@ import {selectSchemaObjectData} from '../../store/reducers/schema/schema';
1212import type { AdditionalNodesProps , AdditionalTenantsProps } from '../../types/additionalProps' ;
1313import { cn } from '../../utils/cn' ;
1414import { 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' ;
1616import { isAccessError } from '../../utils/response' ;
1717
1818import ObjectGeneral from './ObjectGeneral/ObjectGeneral' ;
@@ -43,7 +43,6 @@ interface TenantProps {
4343}
4444
4545export function Tenant ( props : TenantProps ) {
46- const [ autoRefreshInterval ] = useAutoRefreshInterval ( ) ;
4746 const [ summaryVisibilityState , dispatchSummaryVisibilityAction ] = React . useReducer (
4847 paneVisibilityToggleReducerCreator ( DEFAULT_IS_TENANT_SUMMARY_COLLAPSED ) ,
4948 undefined ,
@@ -95,12 +94,7 @@ export function Tenant(props: TenantProps) {
9594 currentData : currentItem ,
9695 error,
9796 isLoading,
98- } = overviewApi . useGetOverviewQuery (
99- { path, database : tenantName } ,
100- {
101- pollingInterval : autoRefreshInterval ,
102- } ,
103- ) ;
97+ } = overviewApi . useGetOverviewQuery ( { path, database : tenantName } ) ;
10498
10599 const preloadedData = useTypedSelector ( ( state ) =>
106100 selectSchemaObjectData ( state , path , tenantName ) ,
0 commit comments