mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
Fix option values collection
This commit is contained in:
@@ -73,8 +73,17 @@ const expandOptions = (
|
||||
}
|
||||
}
|
||||
|
||||
const expandedOptionValues = [...option.values, optionValue]
|
||||
if (existingOptionIndex === -1) {
|
||||
return [
|
||||
...accumulatedOptions,
|
||||
{
|
||||
...option,
|
||||
values: [optionValue],
|
||||
},
|
||||
]
|
||||
}
|
||||
|
||||
const expandedOptionValues = [...option.values, optionValue]
|
||||
const expandedOptions = [...accumulatedOptions]
|
||||
|
||||
expandedOptions[existingOptionIndex] = {
|
||||
|
@@ -12,7 +12,7 @@ const getMediaGallery = (
|
||||
) => string | null
|
||||
) => {
|
||||
return images.reduce<ProductImage[]>((productImages, _, imageIndex) => {
|
||||
const imageUrl = getImageUrl(images[imageIndex], 9001, 9001)
|
||||
const imageUrl = getImageUrl(images[imageIndex], 800, 800)
|
||||
|
||||
if (imageUrl) {
|
||||
return [
|
||||
|
Reference in New Issue
Block a user