1
0
mirror of https://github.com/vercel/commerce.git synced 2025-05-30 13:06:58 +00:00

add default values to fix case where there are no values for product option (like text input) ()

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

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