mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
Login, Sign Up, Log Out, and checkout & customer association
This commit is contained in:
@@ -18,12 +18,12 @@ const getAllProductPaths = async (options?: {
|
||||
variables,
|
||||
})
|
||||
|
||||
const edges = data.products?.edges
|
||||
const productInfo = data.products?.productInfo
|
||||
const edges = data?.products?.edges
|
||||
const productInfo = data?.products?.productInfo
|
||||
const hasNextPage = productInfo?.hasNextPage
|
||||
|
||||
return {
|
||||
products: edges.map(({ node: { handle } }: ProductEdge) => ({
|
||||
products: edges?.map(({ node: { handle } }: ProductEdge) => ({
|
||||
node: {
|
||||
path: `/${handle}`,
|
||||
},
|
||||
|
Reference in New Issue
Block a user