mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-07 02:59:05 +00:00
fix(ui): narrow the markdown image src to a string
This commit is contained in:
parent
b75035df90
commit
e06d3faf76
1 changed files with 1 additions and 1 deletions
|
|
@ -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 <span>{alt}</span>;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue