Skip to content

Commit 09afc42

Browse files
committed
fix: isEqual
1 parent 145e145 commit 09afc42

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import React from 'react';
22

33
import type {Column} from '@gravity-ui/react-data-table';
44
import {TableColumnSetup} from '@gravity-ui/uikit';
5+
import {isEqual} from 'lodash';
56

67
import {ResponseError} from '../../../../components/Errors/ResponseError';
78
import {ResizeableDataTable} from '../../../../components/ResizeableDataTable/ResizeableDataTable';
@@ -146,7 +147,7 @@ export const RunningQueriesData = ({
146147
loading={isFetching && currentData === undefined}
147148
settings={TOP_QUERIES_TABLE_SETTINGS}
148149
onRowClick={onRowClick}
149-
rowClassName={(row) => b('row', {active: row === selectedRow})}
150+
rowClassName={(row) => b('row', {active: isEqual(row, selectedRow)})}
150151
sortOrder={tableSort}
151152
onSort={handleTableSort}
152153
/>

0 commit comments

Comments
 (0)