mirror of
https://git.mirrors.martin98.com/https://github.com/bytedance/deer-flow
synced 2025-08-19 19:59:08 +08: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