From 7ca79902d3181422d839fd4ffe6b49f026a22fc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Meyer?= Date: Tue, 11 Jul 2023 08:54:30 +0200 Subject: [PATCH] feat(poc): fix type error for crossSell --- lib/shopware/api-extended.ts | 2 +- lib/shopware/index.ts | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/shopware/api-extended.ts b/lib/shopware/api-extended.ts index 745325bd5..07845b473 100644 --- a/lib/shopware/api-extended.ts +++ b/lib/shopware/api-extended.ts @@ -59,7 +59,7 @@ export type ExtendedCrossSellingElementCollection = Omit< 'products' > & { products?: ExtendedProduct[]; -}; +}[]; export type ExtendedCategory = Omit & { children?: ExtendedCategory[]; diff --git a/lib/shopware/index.ts b/lib/shopware/index.ts index a6f6d5293..717380b19 100644 --- a/lib/shopware/index.ts +++ b/lib/shopware/index.ts @@ -207,7 +207,6 @@ export async function getProductRecommendations(productId: string): Promise