mirror of
https://github.com/vercel/commerce.git
synced 2025-07-31 14:01:24 +00:00
add default values to fix case where there are no values for product option (like text input) (#255)
Co-authored-by: Luis Alvarez D <luis@vercel.com>
This commit is contained in:
@@ -10,7 +10,7 @@ function normalizeProductOption(productOption: any) {
|
|||||||
const {
|
const {
|
||||||
node: {
|
node: {
|
||||||
entityId,
|
entityId,
|
||||||
values: { edges },
|
values: { edges = [] } = {},
|
||||||
...rest
|
...rest
|
||||||
},
|
},
|
||||||
} = productOption
|
} = productOption
|
||||||
|
Reference in New Issue
Block a user