Skip to content

Commit

Permalink
filter products before extends (#943)
Browse files Browse the repository at this point in the history
  • Loading branch information
guitavano authored Oct 23, 2024
1 parent 9e360ba commit 55ea8a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vtex/loaders/product/extend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ export default async (
req: Request,
ctx: AppContext,
): Promise<Product[]> => {
let p = products;
let p = products.filter((p) => p);

if (variants) {
p = await variantsExt(p, req, ctx);
Expand Down

0 comments on commit 55ea8a9

Please sign in to comment.