forked from crowetic/commerce
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:
parent
44ce537b57
commit
1375d88171
@ -10,7 +10,7 @@ function normalizeProductOption(productOption: any) {
|
||||
const {
|
||||
node: {
|
||||
entityId,
|
||||
values: { edges },
|
||||
values: { edges = [] } = {},
|
||||
...rest
|
||||
},
|
||||
} = productOption
|
||||
|
Loading…
x
Reference in New Issue
Block a user