Skip to content

Commit

Permalink
fix: set list child index correctly (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
kadikraman authored Apr 20, 2023
1 parent 2e06e7c commit 5552d6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/react-portable-text.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ const getNodeRenderer = (
const children = node.children.map((child, childIndex) =>
renderNode({
node: child._key ? child : {...child, _key: `li-${index}-${childIndex}`},
index: index,
index: childIndex,
isInline: false,
renderNode,
})
Expand Down

0 comments on commit 5552d6f

Please sign in to comment.