Skip to content

Commit

Permalink
fix: <Table> <td> key prop error (#693)
Browse files Browse the repository at this point in the history
* chore: table header flag

* feat: add table header preview

* chore: table cell node and props

* chore: table cell normalizer

* chore: preview table with table cell rows

* chore: table sub node cell

* chore: table cell normalizer as text

* chore: format files

* fix: add table as node

* feat: add table.cell to pages

* feat: support table.cell props for render

* chore: table.cell props for preview

* chore: format files

* feat: add table cell margin support

* feat: table cell margin preview

* chore: format files

* style: improve table sample

* chore: fix comments

* fix: preview table td key prop

* fix: preview table td key prop

* chore: revoke slide object key
  • Loading branch information
juanesquintero authored Aug 30, 2023
1 parent 5f093cd commit 7ec5a91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/preview/Preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -379,10 +379,10 @@ const SlideObjectPreview = ({
<tbody>
{object.rows.map((row: InternalTableCell[], i: number) => (
<tr key={i}>
{row.map((cell: InternalTableCell) => {
{row.map((cell: InternalTableCell, j: number) => {
return (
<td
key={i}
key={`${i}-${j}`}
style={{
...getTextStyleForPart(
cell.style,
Expand Down

0 comments on commit 7ec5a91

Please sign in to comment.