Skip to content

Commit

Permalink
Ensure working index
Browse files Browse the repository at this point in the history
  • Loading branch information
leo committed Jun 11, 2024
1 parent a677d09 commit 91409e4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/rich-text.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,10 @@ const RichText = ({
}> | null;

return RenderingElement ? (
<RenderingElement {...attributes} key={"rendering" + position}>
<RenderingElement
{...attributes}
key={"rendering" + String(position)}
>
{final}
</RenderingElement>
) : (
Expand All @@ -121,7 +124,7 @@ const RichText = ({
<RichText
data={item.content}
components={components}
key={"rich-text" + position}
key={"rich-text" + String(position)}
/>
) : null;
let language = "plaintext";
Expand Down

0 comments on commit 91409e4

Please sign in to comment.