Skip to content

Commit

Permalink
fix: add missing key property in RouteCallResultRenderer
Browse files Browse the repository at this point in the history
  • Loading branch information
vysinsky committed Jun 7, 2022
1 parent f74a9b1 commit b078640
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions client/src/components/RouteCallResultRenderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ function RouteCallResultRenderer({ result }: Props) {
Renderings ({result.renderings.length})
</Accordion.Header>
<Accordion.Body>
{result.renderings.map((rendering) => (
<JSONPretty data={rendering} />
{result.renderings.map((rendering, i) => (
<JSONPretty key={i} data={rendering} />
))}
</Accordion.Body>
</Accordion.Item>
Expand All @@ -66,8 +66,8 @@ function RouteCallResultRenderer({ result }: Props) {
<Accordion.Item eventKey="events">
<Accordion.Header>Events ({result.events.length})</Accordion.Header>
<Accordion.Body>
{result.events.map((event) => (
<JSONPretty data={event} />
{result.events.map((event, i) => (
<JSONPretty key={i} data={event} />
))}
</Accordion.Body>
</Accordion.Item>
Expand All @@ -76,8 +76,10 @@ function RouteCallResultRenderer({ result }: Props) {
Message log ({result.messageLog.length})
</Accordion.Header>
<Accordion.Body>
{result.messageLog.map((message) => (
<Alert variant="info">{message}</Alert>
{result.messageLog.map((message, i) => (
<Alert key={i} variant="info">
{message}
</Alert>
))}
</Accordion.Body>
</Accordion.Item>
Expand Down

1 comment on commit b078640

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage report

St.
Category Percentage Covered / Total
🟡 Statements 78.15% 472/604
🟢 Branches 91.01% 81/89
🟡 Functions 76.67% 46/60
🟡 Lines 78.15% 472/604

Test suite run success

30 tests passing in 5 suites.

Report generated by 🧪jest coverage report action from b078640

Please sign in to comment.