From 1375d8817194b0bdd384a1a50ae8c88836839235 Mon Sep 17 00:00:00 2001 From: ikoruk Date: Sat, 31 Jul 2021 02:13:23 +0200 Subject: [PATCH] add default values to fix case where there are no values for product option (like text input) (#255) Co-authored-by: Luis Alvarez D --- framework/bigcommerce/lib/normalize.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/bigcommerce/lib/normalize.ts b/framework/bigcommerce/lib/normalize.ts index cd1c3ce5a..82a22de00 100644 --- a/framework/bigcommerce/lib/normalize.ts +++ b/framework/bigcommerce/lib/normalize.ts @@ -10,7 +10,7 @@ function normalizeProductOption(productOption: any) { const { node: { entityId, - values: { edges }, + values: { edges = [] } = {}, ...rest }, } = productOption