From 2bd75c44911f4f576d2aea2b383ae323c27d05e6 Mon Sep 17 00:00:00 2001 From: fcarraUniSa Date: Tue, 17 Feb 2026 11:10:04 +0100 Subject: [PATCH] Update App.tsx --- App.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/App.tsx b/App.tsx index a1c078a..a18c0c1 100644 --- a/App.tsx +++ b/App.tsx @@ -162,7 +162,7 @@ const App: React.FC = () => { const shouldReopen = role === 'user' && t.status === TicketStatus.RESOLVED; return { ...t, - messages: [...t.messages, newMsg], + messages: [...(t.messages || []), newMsg], // FIX: Ensure array fallback status: shouldReopen ? TicketStatus.OPEN : t.status }; })