From 3d4dc9ec8681958f15a623359adaf9b9dc2c80bf Mon Sep 17 00:00:00 2001 From: Chloe Date: Wed, 8 May 2024 16:26:02 +0700 Subject: [PATCH] fix: type errors Signed-off-by: Chloe --- app/sitemap.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/sitemap.ts b/app/sitemap.ts index fe8ed96ac..9a1095b63 100644 --- a/app/sitemap.ts +++ b/app/sitemap.ts @@ -26,7 +26,7 @@ export default async function sitemap(): Promise { })) ); - const productsPromise = getProducts({}).then((products) => + const productsPromise = getProducts({}).then(({ products }) => products.map((product) => ({ url: `${baseUrl}/product/${product.handle}`, lastModified: product.updatedAt