4
0
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:
ikoruk 2021-07-31 02:13:23 +02:00 committed by GitHub
parent 44ce537b57
commit 1375d88171
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,7 +10,7 @@ function normalizeProductOption(productOption: any) {
const {
node: {
entityId,
values: { edges },
values: { edges = [] } = {},
...rest
},
} = productOption