mirror of
https://github.com/vercel/commerce.git
synced 2025-06-19 21:51: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 {
|
||||
node: {
|
||||
entityId,
|
||||
values: { edges },
|
||||
values: { edges = [] } = {},
|
||||
...rest
|
||||
},
|
||||
} = productOption
|
||||
|
Loading…
x
Reference in New Issue
Block a user