fix: img with empty URL

This commit is contained in:
Henry Li 2025-05-13 09:06:18 +08:00 committed by SToneX-byted
parent de014db3a5
commit 4dfc66075a
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ function Image({
);
return (
<span className={cn("block w-fit overflow-hidden", className)}>
{isError ? (
{isError || !src ? (
fallback
) : (
<Tooltip title={alt ?? "No caption"}>