Skip to content

Commit 9add6ca

Browse files
committed
fix(TopQueries): proper table dynamic render type
1 parent 2c8ea97 commit 9add6ca

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import {useCallback, useEffect, useRef, useState} from 'react';
22
import {useDispatch} from 'react-redux';
33
import cn from 'bem-cn-lite';
44

5-
import DataTable, {Column} from '@yandex-cloud/react-data-table';
5+
import DataTable, {Column, Settings} from '@yandex-cloud/react-data-table';
66
import {Loader} from '@gravity-ui/uikit';
77

88
import {DateRange, DateRangeValues} from '../../../../components/DateRange';
@@ -33,6 +33,11 @@ import './TopQueries.scss';
3333

3434
const b = cn('kv-top-queries');
3535

36+
const TABLE_SETTINGS: Settings = {
37+
...DEFAULT_TABLE_SETTINGS,
38+
dynamicRenderType: 'variable',
39+
};
40+
3641
const MAX_QUERY_HEIGHT = 10;
3742
const COLUMNS: Column<KeyValueRow>[] = [
3843
{
@@ -172,7 +177,7 @@ export const TopQueries = ({path, type, changeSchemaTab}: TopQueriesProps) => {
172177
<DataTable
173178
columns={COLUMNS}
174179
data={data}
175-
settings={DEFAULT_TABLE_SETTINGS}
180+
settings={TABLE_SETTINGS}
176181
onRowClick={handleRowClick}
177182
theme="yandex-cloud"
178183
/>

0 commit comments

Comments
 (0)