Skip to content

Commit

Permalink
fixes issues related to tables with an ID column (#5152)
Browse files Browse the repository at this point in the history
* fixes issues related to tables with an ID column

* md

* snaps
  • Loading branch information
jschuler committed Nov 17, 2020
1 parent 449d7a8 commit 581afb8
Show file tree
Hide file tree
Showing 3 changed files with 1,465 additions and 1,465 deletions.
4 changes: 2 additions & 2 deletions packages/react-table/src/components/Table/Body.tsx
Expand Up @@ -115,7 +115,7 @@ class ContextBody extends React.Component<TableBodyProps, {}> {
...mappedCell
};
},
{ id: row.id !== undefined ? row.id : rowKey }
{ secretTableRowKeyId: row.id !== undefined ? row.id : rowKey }
))
};
};
Expand Down Expand Up @@ -159,7 +159,7 @@ class ContextBody extends React.Component<TableBodyProps, {}> {
export const TableBody = ({
className = '' as string,
children = null as React.ReactNode,
rowKey = 'id' as string,
rowKey = 'secretTableRowKeyId' as string,
/* eslint-disable @typescript-eslint/no-unused-vars */
onRow = (...args: any) => Object,
onRowClick = (event: React.MouseEvent, row: IRow, rowProps: IExtraRowData, computedData: IComputedData) =>
Expand Down

0 comments on commit 581afb8

Please sign in to comment.