diff --git a/src/components/Chat/Chat.tsx b/src/components/Chat/Chat.tsx index 03d570ab8..4e9e83abe 100644 --- a/src/components/Chat/Chat.tsx +++ b/src/components/Chat/Chat.tsx @@ -568,9 +568,8 @@ export const Chat = memo(({ stopConversationRef, courseMetadata }: Props) => { // Remove the existing image description (currentMessage.content as Content[]).splice(imgDescIndex, 1); } - - handleSend(currentMessage, 2, null); } + handleSend(currentMessage as Message, 2, null); }, [currentMessage, handleSend]); const scrollToBottom = useCallback(() => {