mirror of
https://github.com/fsolla/teqo.git
synced 2026-12-03 22:13:06 +00:00
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,
|
url: imageUrl,
|
||||||
secureUrl: imageUrl,
|
secureUrl: imageUrl,
|
||||||
width: image.width ?? undefined,
|
width: image?.width ?? undefined,
|
||||||
height: image.height ?? undefined,
|
height: image?.height ?? undefined,
|
||||||
alt: image.alt,
|
alt: image?.alt,
|
||||||
type: image.mimeType ?? undefined,
|
type: image?.mimeType ?? undefined,
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
: []
|
: []
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue