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:
parent
fed88c8485
commit
76596fd765
@ -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(
|
||||
spreeSuccessResponse,
|
||||
|
Loading…
x
Reference in New Issue
Block a user