Skip to content

Commit

Permalink
fix for results arr, not pretty but it'll do pig.
Browse files Browse the repository at this point in the history
  • Loading branch information
KelvinTegelaar committed Aug 10, 2023
1 parent 58370c0 commit 9a86d67
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/components/tables/CippTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,16 @@ export default function CippTable({
{(massResults.length >= 1 || loopRunning) && (
<CCallout color="info">
{massResults.map((message, idx) => {
return <li key={idx}>{message.data?.Results}</li>
return (
<li key={idx}>
{
//if message.data.results is an array, join, else just show the message
message.data?.Results?.length > 1
? message.data?.Results?.join(', ')
: message.data?.Results
}
</li>
)
})}
{loopRunning && (
<li>
Expand Down

0 comments on commit 9a86d67

Please sign in to comment.