Skip to content

Commit 308afde

Browse files
mariusconjeaudMarius Conjeaud
andauthored
Fix bad wrapping for arrays (#868)
* Fix bad wrapping for arrays * Add space for array display --------- Co-authored-by: Marius Conjeaud <[email protected]>
1 parent 53c5e1d commit 308afde

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/report/ReportRecordProcessing.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,12 +247,15 @@ function RenderPath(value) {
247247
}
248248

249249
function RenderArray(value) {
250+
if (value.length > 0 && !valueIsNode(value[0]) && !valueIsRelationship(value[0])) {
251+
return RenderString(value.join(', '));
252+
}
250253
const mapped = value.map((v, i) => {
251254
return (
252-
<div key={String(`k${i}`) + v}>
255+
<span key={String(`k${i}`) + v}>
253256
{RenderSubValue(v)}
254257
{i < value.length - 1 && !valueIsNode(v) && !valueIsRelationship(v) ? <span>,&nbsp;</span> : <></>}
255-
</div>
258+
</span>
256259
);
257260
});
258261
return mapped;

0 commit comments

Comments
 (0)