From 26325267940a59164645f78fb05b3a9878e2a105 Mon Sep 17 00:00:00 2001 From: joseph le Date: Tue, 26 May 2026 13:54:15 +0700 Subject: [PATCH] Update view status AI --- FRONTEND/src/components/CardLine.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/FRONTEND/src/components/CardLine.tsx b/FRONTEND/src/components/CardLine.tsx index 8f22f54..5b8ef47 100644 --- a/FRONTEND/src/components/CardLine.tsx +++ b/FRONTEND/src/components/CardLine.tsx @@ -155,6 +155,7 @@ const CardLine = ({ }, [line?.latestScenario]); function detectResultStatus(lines: string[]) { + if (!lines || lines.length === 0) return null; const text = lines.join("\n"); const match = text.match(