Skip to content

Commit

Permalink
docs(tables): add comment to DataTable
Browse files Browse the repository at this point in the history
  • Loading branch information
ivangabriele committed Oct 24, 2024
1 parent fb723b0 commit 139ed72
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/tables/DataTable/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ export function DataTable<T extends AnyObject>({

<TBody $withTopBorder={isTableHeadHidden!}>
{rows.map(row => (
// `data-id` is expected by `cy.getTableRowById()` custom command
<SimpleTable.BodyTr key={row.id} data-id={'id' in row.original ? row.original.id : row.id}>
{row.getVisibleCells().map(cell => (
<Td key={cell.id} cell={cell} />
Expand Down

0 comments on commit 139ed72

Please sign in to comment.