Skip to content

Commit

Permalink
Bugfix/array table wrap (#943)
Browse files Browse the repository at this point in the history
* table wrap bug fix

* typo fix
  • Loading branch information
LiamEdwardsLamarche authored Nov 11, 2024
1 parent c1ea932 commit a7a17eb
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions src/report/ReportRecordProcessing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -269,16 +269,17 @@ function RenderArray(value, transposedTable = false) {
mapped = value.map((v, i) => {
return RenderSubValue(v) + (i < value.length - 1 ? ', ' : '');
});
} else {
// Render Node and Relationship objects, which will look like a Path
mapped = value.map((v, i) => {
return (
<span key={String(`k${i}`) + v}>
{RenderSubValue(v)}
{i < value.length - 1 && !valueIsNode(v) && !valueIsRelationship(v) ? <span>, </span> : <></>}
</span>
);
});
}
// Render Node and Relationship objects, which will look like a Path
mapped = value.map((v, i) => {
return (
<span key={String(`k${i}`) + v}>
{RenderSubValue(v)}
{i < value.length - 1 && !valueIsNode(v) && !valueIsRelationship(v) ? <span>, </span> : <></>}
</span>
);
});
return mapped;
}

Expand Down

0 comments on commit a7a17eb

Please sign in to comment.