There was an error while loading. Please reload this page.
1 parent f01a363 commit eaa2cb1Copy full SHA for eaa2cb1
1 file changed
vtex/loaders/product/extend.ts
@@ -65,7 +65,7 @@ const kitItemsExt = async (
65
const productsById = new Map<string, ProductLeaf>();
66
for (const batch of batched) {
67
for (const product of batch || []) {
68
- for (const leaf of product.isVariantOf?.hasVariant || []) {
+ for (const leaf of product?.isVariantOf?.hasVariant || []) {
69
productsById.set(leaf.productID, leaf);
70
}
71
0 commit comments