Fix optional chaining for image metadata fields
This commit is contained in:
parent
166104bbac
commit
715e3d051e
1 changed files with 4 additions and 4 deletions
|
|
@ -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,
|
||||
},
|
||||
]
|
||||
: []
|
||||
|
|
|
|||
Loading…
Reference in a new issue