mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-09-18 18:46:17 +00:00
fix: img with empty URL
This commit is contained in:
parent
4ae9508c54
commit
b2c9e5f893
@ -44,7 +44,7 @@ function Image({
|
|||||||
);
|
);
|
||||||
return (
|
return (
|
||||||
<span className={cn("block w-fit overflow-hidden", className)}>
|
<span className={cn("block w-fit overflow-hidden", className)}>
|
||||||
{isError ? (
|
{isError || !src ? (
|
||||||
fallback
|
fallback
|
||||||
) : (
|
) : (
|
||||||
<Tooltip title={alt ?? "No caption"}>
|
<Tooltip title={alt ?? "No caption"}>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user