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 4ae9508c54
commit b2c9e5f893

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"}>