fix: prevent image rendering error in ThumbnailImage

This commit is contained in:
lawvs 2025-06-17 22:47:44 +08:00
parent bd4a921cdc
commit e25451aa2b
1 changed files with 1 additions and 0 deletions

View File

@ -236,6 +236,7 @@ const ThumbnailImage = ({
className={cn("relative ml-4 flex h-full w-24 justify-center overflow-hidden rounded-lg")}
>
{image &&
!imageError &&
(isSquare ? (
<SquareImage image={image} blurhash={blurhash} onError={handleImageError} />
) : (