Merge pull request 'Update ModalTerminal.tsx' (#19) from that into main

Reviewed-on: #19
This commit is contained in:
andrew.ng 2025-11-28 12:19:42 +11:00
commit 89b0524b15
1 changed files with 17 additions and 12 deletions

View File

@ -516,18 +516,23 @@ const ModalTerminal = ({
)
)}
</Box> */}
<Box>
<Text size="sm" fw={"bold"}>
Issue:
</Text>
{(line?.latestScenario?.detectAI?.issue || [])?.map(
(el, i) => (
<Box key={i}>
<Text size="sm">- {el}</Text>
</Box>
)
)}
</Box>
{line?.latestScenario?.detectAI?.issue &&
Array.isArray(line?.latestScenario?.detectAI?.issue) ? (
<Box>
<Text size="sm" fw={"bold"}>
Issue:
</Text>
{line?.latestScenario?.detectAI?.issue?.map(
(el, i) => (
<Box key={i}>
<Text size="sm">- {el}</Text>
</Box>
)
)}
</Box>
) : (
""
)}
</Box>
) : (
""