mirror of
https://github.com/vercel/commerce.git
synced 2025-07-25 11:11:24 +00:00
Mapped options to variants
This commit is contained in:
@@ -22,10 +22,8 @@ const getProduct = async (options: {
|
||||
variables,
|
||||
})
|
||||
|
||||
const { product } = data
|
||||
|
||||
return {
|
||||
product: product ? normalizeProduct(product) : null,
|
||||
product: data?.product ? normalizeProduct(data.product) : null,
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user