diff --git a/core/modules/cart/helpers/getProductConfiguration.ts b/core/modules/cart/helpers/getProductConfiguration.ts index 901a9edd55..df5a9b8f97 100644 --- a/core/modules/cart/helpers/getProductConfiguration.ts +++ b/core/modules/cart/helpers/getProductConfiguration.ts @@ -6,8 +6,8 @@ const ATTRIBUTES = ['color', 'size'] const getProductConfiguration = (product: CartItem): ProductConfiguration => { const options = getProductOptions(product) - const getAttributesFields = (attributeCode) => - options[attributeCode].find(c => c.id === parseInt(product[attributeCode])) + const getAttributesFields = (attributeCode) => + (options[attributeCode] || []).find(c => c.id === parseInt(product[attributeCode])) if (!options) { return null