mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
Restored Add to cart
This commit is contained in:
@@ -8,11 +8,13 @@ export function normalizeProduct(productNode: BCProduct): Product {
|
||||
productOptions,
|
||||
prices,
|
||||
path,
|
||||
options: _,
|
||||
id: _,
|
||||
options: _0,
|
||||
...rest
|
||||
} = productNode
|
||||
|
||||
return {
|
||||
id,
|
||||
path,
|
||||
slug: path?.replace(/^\/+|\/+$/g, ''),
|
||||
images: images.edges
|
||||
|
Reference in New Issue
Block a user