Skip to content

Commit

Permalink
feat(react-js-components): fix rendering of part in fragment
Browse files Browse the repository at this point in the history
  • Loading branch information
dhairyadwivedi committed Mar 26, 2024
1 parent 3102598 commit b339065
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ export function renderTextContent(text: String) {
{partsBetweenLineBreaks.map((part: String, index: Number) => {
const key = index.toString();
if (index === partsBetweenLineBreaks.length - 1) {
return <Fragment key={key}>part</Fragment>;
return <Fragment key={key}>{part}</Fragment>;
}
return (
<Fragment key={key}>
Expand Down

0 comments on commit b339065

Please sign in to comment.