diff --git a/src/components/ChatPreview.tsx b/src/components/ChatPreview.tsx index 0dc0424..37cec53 100644 --- a/src/components/ChatPreview.tsx +++ b/src/components/ChatPreview.tsx @@ -128,14 +128,14 @@ export default function ChatPreview({ agent, agentId }: Props) { } }; - const isImageUrl = (url: string) => url?.startsWith('http') || url?.startsWith('/'); + const isImageUrl = (url: string | undefined) => url?.startsWith('http') || url?.startsWith('/'); return (