diff --git a/front/components/assistant/conversation/AgentMessage.tsx b/front/components/assistant/conversation/AgentMessage.tsx index 181e1ce64f81..7739ad60b49e 100644 --- a/front/components/assistant/conversation/AgentMessage.tsx +++ b/front/components/assistant/conversation/AgentMessage.tsx @@ -163,7 +163,7 @@ export function AgentMessage({ useEventSource(buildEventSourceURL, onEventCallback); - const agentMessageToRender = (() => { + const agentMessageToRender = ((): AgentMessageType => { switch (message.status) { case "succeeded": case "failed":