mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
fix: page/product properties
This commit is contained in:
@@ -29,9 +29,9 @@ const getAllPages = async (options?: {
|
||||
const { data } = await config.fetch(getAllPagesQuery, { variables })
|
||||
|
||||
const pages = data.pages?.edges?.map(
|
||||
({ node: { title: name, handle, ...node } }: PageEdge) => ({
|
||||
({ node: { title: name, slug, ...node } }: PageCountableEdge) => ({
|
||||
...node,
|
||||
url: `/${locale}/${handle}`,
|
||||
url: `/${locale}/${slug}`,
|
||||
name,
|
||||
})
|
||||
)
|
||||
|
Reference in New Issue
Block a user