Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/containers/Tenant/Diagnostics/Configs/Configs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down Expand Up @@ -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');
Expand Down
1 change: 0 additions & 1 deletion src/store/reducers/nodesList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ export const nodesListApi = api.injectEndpoints({
return {error};
}
},
providesTags: ['All'],
}),
}),
overrideExisting: 'throw',
Expand Down
1 change: 1 addition & 0 deletions src/store/reducers/tenant/tenant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ export const tenantApi = api.injectEndpoints({
return {error};
}
},
providesTags: ['All'],
}),
}),
overrideExisting: 'throw',
Expand Down
Loading