From f3fe6faf8a5e5a803bfec73e80c66f46debc7828 Mon Sep 17 00:00:00 2001 From: mufazalov Date: Tue, 4 Feb 2025 14:35:26 +0300 Subject: [PATCH] fix(Configs,Operations): fix blicks on autorefresh --- src/containers/Operations/Operations.tsx | 6 +++--- src/containers/Tenant/Diagnostics/Configs/Configs.tsx | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/containers/Operations/Operations.tsx b/src/containers/Operations/Operations.tsx index ffa916effb..45f69be6d0 100644 --- a/src/containers/Operations/Operations.tsx +++ b/src/containers/Operations/Operations.tsx @@ -25,7 +25,7 @@ export function Operations({database}: OperationsProps) { const {kind, searchValue, pageSize, pageToken, handleKindChange, handleSearchChange} = useOperationsQueryParams(); - const {data, isFetching, error, refetch} = operationsApi.useGetOperationListQuery( + const {data, isLoading, error, refetch} = operationsApi.useGetOperationListQuery( {database, kind, page_size: pageSize, page_token: pageToken}, { pollingInterval: autoRefreshInterval, @@ -53,13 +53,13 @@ export function Operations({database}: OperationsProps) { searchValue={searchValue} entitiesCountCurrent={filteredOperations.length} entitiesCountTotal={data?.operations?.length} - entitiesLoading={isFetching} + entitiesLoading={isLoading} handleKindChange={handleKindChange} handleSearchChange={handleSearchChange} /> {error ? : null} - + {data ? ( { const [autoRefreshInterval] = useAutoRefreshInterval(); const { currentData = [], - isFetching, + isLoading, error, } = tenantApi.useGetClusterConfigQuery({database}, {pollingInterval: autoRefreshInterval}); @@ -113,7 +113,7 @@ export const Configs = ({database}: ConfigsProps) => { placeholder={i18n('search-placeholder')} /> - + {error ? ( ) : (