Skip to content

Commit b5eeee2

Browse files
fix: failed test
1 parent cbfadb0 commit b5eeee2

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

src/containers/Tenant/Diagnostics/TopQueries/QueriesTableWithDrawer.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ const b = cn('kv-top-queries');
1818
interface SimpleTableWithDrawerProps {
1919
columns: Column<KeyValueRow>[];
2020
data: KeyValueRow[];
21-
loading?: boolean;
21+
isFetching?: boolean;
22+
isLoading?: boolean;
2223
onRowClick?: (
2324
row: KeyValueRow | null,
2425
index?: number,
@@ -39,7 +40,8 @@ interface SimpleTableWithDrawerProps {
3940
export function QueriesTableWithDrawer({
4041
columns,
4142
data,
42-
loading,
43+
isFetching,
44+
isLoading,
4345
onRowClick,
4446
columnsWidthLSKey,
4547
emptyDataMessage,
@@ -104,7 +106,8 @@ export function QueriesTableWithDrawer({
104106
columnsWidthLSKey={columnsWidthLSKey}
105107
columns={columns}
106108
data={data}
107-
isFetching={loading}
109+
isFetching={isFetching}
110+
isLoading={isLoading}
108111
settings={tableSettings}
109112
onRowClick={handleRowClick}
110113
rowClassName={(row) => b('row', {active: isEqual(row, selectedRow)})}

src/containers/Tenant/Diagnostics/TopQueries/RunningQueriesData.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,12 @@ export const RunningQueriesData = ({
9696
</TableWithControlsLayout.Controls>
9797

9898
{error ? <ResponseError error={parseQueryErrorToString(error)} /> : null}
99-
<TableWithControlsLayout.Table loading={isLoading}>
99+
<TableWithControlsLayout.Table>
100100
<QueriesTableWithDrawer
101101
columns={columnsToShow}
102102
data={rows || []}
103-
loading={isFetching && currentData === undefined}
103+
isFetching={isFetching && currentData === undefined}
104+
isLoading={isLoading}
104105
columnsWidthLSKey={RUNNING_QUERIES_COLUMNS_WIDTH_LS_KEY}
105106
emptyDataMessage={i18n('no-data')}
106107
sortOrder={tableSort}

src/containers/Tenant/Diagnostics/TopQueries/TopQueriesData.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,11 +162,12 @@ export const TopQueriesData = ({
162162
</TableWithControlsLayout.Controls>
163163

164164
{error ? <ResponseError error={parseQueryErrorToString(error)} /> : null}
165-
<TableWithControlsLayout.Table loading={isLoading}>
165+
<TableWithControlsLayout.Table>
166166
<QueriesTableWithDrawer
167167
columns={columnsToShow}
168168
data={rows || []}
169-
loading={isFetching && currentData === undefined}
169+
isFetching={isFetching && currentData === undefined}
170+
isLoading={isLoading}
170171
columnsWidthLSKey={TOP_QUERIES_COLUMNS_WIDTH_LS_KEY}
171172
emptyDataMessage={i18n('no-data')}
172173
sortOrder={tableSort}

0 commit comments

Comments
 (0)