mirror of
https://github.com/vercel/commerce.git
synced 2025-06-20 06:01:21 +00:00
add default values to fix case where there are no values for product option (like text input)
This commit is contained in:
parent
f770ad7a91
commit
3a2f00b49e
@ -6,7 +6,7 @@ function normalizeProductOption(productOption: any) {
|
|||||||
const {
|
const {
|
||||||
node: {
|
node: {
|
||||||
entityId,
|
entityId,
|
||||||
values: { edges },
|
values: { edges = [] } = {},
|
||||||
...rest
|
...rest
|
||||||
},
|
},
|
||||||
} = productOption
|
} = productOption
|
||||||
|
Loading…
x
Reference in New Issue
Block a user