From e06d3faf761dc0d41a4c12b7700e2b94f5db8658 Mon Sep 17 00:00:00 2001 From: mateo-berri <277851410+mateo-berri@users.noreply.github.com> Date: Fri, 25 Sep 2026 20:19:33 -0700 Subject: [PATCH] fix(ui): narrow the markdown image src to a string --- ui/litellm-dashboard/src/components/chat_ui/MarkdownImage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/litellm-dashboard/src/components/chat_ui/MarkdownImage.tsx b/ui/litellm-dashboard/src/components/chat_ui/MarkdownImage.tsx index c44a89baf61..64876dfa95d 100644 --- a/ui/litellm-dashboard/src/components/chat_ui/MarkdownImage.tsx +++ b/ui/litellm-dashboard/src/components/chat_ui/MarkdownImage.tsx @@ -11,7 +11,7 @@ function describeImageSource(src: string): string { export function MarkdownImage({ src, alt, title }: MarkdownImageProps) { const [loaded, setLoaded] = useState(false); - if (!src) { + if (typeof src !== "string" || src === "") { return {alt}; }