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

This commit is contained in:
Yuliy Schwartzburg 2021-06-28 11:57:51 +02:00
parent f770ad7a91
commit 3a2f00b49e

View File

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