Fix optional chaining for image metadata fields

This commit is contained in:
Francisco Ignácio Fontoura Solla 2026-05-01 10:28:32 -03:00
parent 166104bbac
commit 715e3d051e

View file

@ -76,10 +76,10 @@ export async function generateMetadata({
{
url: imageUrl,
secureUrl: imageUrl,
width: image.width ?? undefined,
height: image.height ?? undefined,
alt: image.alt,
type: image.mimeType ?? undefined,
width: image?.width ?? undefined,
height: image?.height ?? undefined,
alt: image?.alt,
type: image?.mimeType ?? undefined,
},
]
: []