Skip to content

Commit 4d9c2b6

Browse files
fix(Configs,Operations): fix blicks on autorefresh (#1908)
1 parent 0e8bdd8 commit 4d9c2b6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/containers/Operations/Operations.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export function Operations({database}: OperationsProps) {
2525
const {kind, searchValue, pageSize, pageToken, handleKindChange, handleSearchChange} =
2626
useOperationsQueryParams();
2727

28-
const {data, isFetching, error, refetch} = operationsApi.useGetOperationListQuery(
28+
const {data, isLoading, error, refetch} = operationsApi.useGetOperationListQuery(
2929
{database, kind, page_size: pageSize, page_token: pageToken},
3030
{
3131
pollingInterval: autoRefreshInterval,
@@ -53,13 +53,13 @@ export function Operations({database}: OperationsProps) {
5353
searchValue={searchValue}
5454
entitiesCountCurrent={filteredOperations.length}
5555
entitiesCountTotal={data?.operations?.length}
56-
entitiesLoading={isFetching}
56+
entitiesLoading={isLoading}
5757
handleKindChange={handleKindChange}
5858
handleSearchChange={handleSearchChange}
5959
/>
6060
</TableWithControlsLayout.Controls>
6161
{error ? <ResponseError error={error} /> : null}
62-
<TableWithControlsLayout.Table loading={isFetching} className={b('table')}>
62+
<TableWithControlsLayout.Table loading={isLoading} className={b('table')}>
6363
{data ? (
6464
<ResizeableDataTable
6565
columns={getColumns({database, refreshTable: refetch})}

src/containers/Tenant/Diagnostics/Configs/Configs.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export const Configs = ({database}: ConfigsProps) => {
9191
const [autoRefreshInterval] = useAutoRefreshInterval();
9292
const {
9393
currentData = [],
94-
isFetching,
94+
isLoading,
9595
error,
9696
} = tenantApi.useGetClusterConfigQuery({database}, {pollingInterval: autoRefreshInterval});
9797

@@ -113,7 +113,7 @@ export const Configs = ({database}: ConfigsProps) => {
113113
placeholder={i18n('search-placeholder')}
114114
/>
115115
</TableWithControlsLayout.Controls>
116-
<TableWithControlsLayout.Table loading={isFetching}>
116+
<TableWithControlsLayout.Table loading={isLoading}>
117117
{error ? (
118118
<ResponseError error={error} />
119119
) : (

0 commit comments

Comments
 (0)