mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 12:24:18 +00:00
Remove slash '/' from line item's paths
This commit is contained in:
@@ -130,7 +130,8 @@ const normalizeLineItem = (
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
const path = `/${product.attributes.slug}`
|
// CartItem.tsx expects path without a '/' prefix unlike pages/product/[slug].tsx and others.
|
||||||
|
const path = `${product.attributes.slug}`
|
||||||
|
|
||||||
const spreeOptionValues = jsonApi.findRelationshipDocuments(
|
const spreeOptionValues = jsonApi.findRelationshipDocuments(
|
||||||
spreeSuccessResponse,
|
spreeSuccessResponse,
|
||||||
|
Reference in New Issue
Block a user