diff --git a/src/containers/Tenant/Diagnostics/Configs/Configs.tsx b/src/containers/Tenant/Diagnostics/Configs/Configs.tsx index bf6d05da9..e0174d1d7 100644 --- a/src/containers/Tenant/Diagnostics/Configs/Configs.tsx +++ b/src/containers/Tenant/Diagnostics/Configs/Configs.tsx @@ -11,6 +11,7 @@ import {tenantApi} from '../../../../store/reducers/tenant/tenant'; import type {FeatureFlagConfig} from '../../../../types/api/featureFlags'; import {cn} from '../../../../utils/cn'; import {DEFAULT_TABLE_SETTINGS} from '../../../../utils/constants'; +import {useAutoRefreshInterval} from '../../../../utils/hooks'; import i18n from './i18n'; @@ -87,7 +88,12 @@ interface ConfigsProps { export const Configs = ({database}: ConfigsProps) => { const [search, setSearch] = useQueryParam('search', StringParam); - const {currentData = [], isFetching, error} = tenantApi.useGetClusterConfigQuery({database}); + const [autoRefreshInterval] = useAutoRefreshInterval(); + const { + currentData = [], + isFetching, + error, + } = tenantApi.useGetClusterConfigQuery({database}, {pollingInterval: autoRefreshInterval}); const onChange = (value: string) => { setSearch(value || undefined, 'replaceIn'); diff --git a/src/store/reducers/nodesList.ts b/src/store/reducers/nodesList.ts index 323623aba..153c64d43 100644 --- a/src/store/reducers/nodesList.ts +++ b/src/store/reducers/nodesList.ts @@ -16,7 +16,6 @@ export const nodesListApi = api.injectEndpoints({ return {error}; } }, - providesTags: ['All'], }), }), overrideExisting: 'throw', diff --git a/src/store/reducers/tenant/tenant.ts b/src/store/reducers/tenant/tenant.ts index 5d211b7bf..b1e5edf31 100644 --- a/src/store/reducers/tenant/tenant.ts +++ b/src/store/reducers/tenant/tenant.ts @@ -73,6 +73,7 @@ export const tenantApi = api.injectEndpoints({ return {error}; } }, + providesTags: ['All'], }), }), overrideExisting: 'throw',