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> */}
<Box> {line?.latestScenario?.detectAI?.issue &&
<Text size="sm" fw={"bold"}> Array.isArray(line?.latestScenario?.detectAI?.issue) ? (
Issue: <Box>
</Text> <Text size="sm" fw={"bold"}>
{(line?.latestScenario?.detectAI?.issue || [])?.map( Issue:
(el, i) => ( </Text>
<Box key={i}> {line?.latestScenario?.detectAI?.issue?.map(
<Text size="sm">- {el}</Text> (el, i) => (
</Box> <Box key={i}>
) <Text size="sm">- {el}</Text>
)} </Box>
</Box> )
)}
</Box>
) : (
""
)}
</Box> </Box>
) : ( ) : (
"" ""