Update App.tsx

This commit is contained in:
fcarraUniSa
2026-02-17 11:10:04 +01:00
committed by GitHub
parent 5a0c668613
commit 2bd75c4491

View File

@@ -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
};
})