mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
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:
@@ -10,7 +10,7 @@ function normalizeProductOption(productOption: any) {
|
||||
const {
|
||||
node: {
|
||||
entityId,
|
||||
values: { edges },
|
||||
values: { edges = [] } = {},
|
||||
...rest
|
||||
},
|
||||
} = productOption
|
||||
|
Reference in New Issue
Block a user