From c555461e07200d55adbadbe12e573fe1a085c51d Mon Sep 17 00:00:00 2001 From: guitavano Date: Wed, 23 Oct 2024 07:43:46 -0300 Subject: [PATCH] filter products before extends --- vtex/loaders/product/extend.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vtex/loaders/product/extend.ts b/vtex/loaders/product/extend.ts index 4fb47a50e..e69675dbc 100644 --- a/vtex/loaders/product/extend.ts +++ b/vtex/loaders/product/extend.ts @@ -182,7 +182,7 @@ export default async ( req: Request, ctx: AppContext, ): Promise => { - let p = products; + let p = products.filter((p) => p); if (variants) { p = await variantsExt(p, req, ctx);