From cd3a8b9308f2e435edc2f5c7ef6818a0ae201b70 Mon Sep 17 00:00:00 2001 From: nguyentrungthat <80239428+nguentrungthat@users.noreply.github.com> Date: Fri, 28 Nov 2025 08:17:12 +0700 Subject: [PATCH] Update ModalTerminal.tsx --- FRONTEND/src/components/ModalTerminal.tsx | 29 +++++++++++++---------- 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/FRONTEND/src/components/ModalTerminal.tsx b/FRONTEND/src/components/ModalTerminal.tsx index 03e4a54..db4333a 100644 --- a/FRONTEND/src/components/ModalTerminal.tsx +++ b/FRONTEND/src/components/ModalTerminal.tsx @@ -516,18 +516,23 @@ const ModalTerminal = ({ ) )} */} - - - Issue: - - {(line?.latestScenario?.detectAI?.issue || [])?.map( - (el, i) => ( - - - {el} - - ) - )} - + {line?.latestScenario?.detectAI?.issue && + Array.isArray(line?.latestScenario?.detectAI?.issue) ? ( + + + Issue: + + {line?.latestScenario?.detectAI?.issue?.map( + (el, i) => ( + + - {el} + + ) + )} + + ) : ( + "" + )} ) : ( ""