Update ModalTerminal.tsx

This commit is contained in:
nguyentrungthat 2025-11-28 08:17:12 +07:00
parent 33ba827207
commit cd3a8b9308
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>
) : (
""