mirror of
https://github.com/vercel/commerce.git
synced 2025-05-15 14:06:59 +00:00
Destructure test
This commit is contained in:
parent
182e245fd7
commit
4359ee490e
@ -57,7 +57,7 @@ export async function generateMetadata({ params }: {params: { slug: string[], lo
|
||||
|
||||
const data = filterDataToSingleItem(pageData, false)
|
||||
|
||||
const { seo, title } = data
|
||||
const { seo, title } = data ?? {};
|
||||
|
||||
return {
|
||||
title: seo?.title ? seo?.title : title,
|
||||
|
Loading…
x
Reference in New Issue
Block a user