Fixed an issue where sorting the database activity table on the dashboard by any column caused the details to expand in the wrong position. #7554

This commit is contained in:
Pravesh Sharma 2024-06-28 14:47:26 +05:30 committed by GitHub
parent 62a61b403e
commit 391db5131d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -170,7 +170,7 @@ export function Table({ columns, data, hasSelectRow, schema, sortOptions, tableP
<PgReactTableBody style={{ height: virtualizer.getTotalSize() + 'px'}}>
{virtualizer.getVirtualItems().map((virtualRow) => {
const row = rows[virtualRow.index];
return <TableRow index={row.index} key={row.index} row={row} schema={schema}
return <TableRow index={virtualRow.index} key={virtualRow.index} row={row} schema={schema}
measureElement={virtualizer.measureElement}
style={{
transform: `translateY(${virtualRow.start}px)`, //this should always be a `style` as it changes on scroll