Remove slash '/' from line item's paths

This commit is contained in:
tniezg 2021-09-13 18:01:29 +02:00
parent fed88c8485
commit 76596fd765

View File

@ -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,