From ad3fdca651aa11d4f8836b52cc0c50bb7b566dda Mon Sep 17 00:00:00 2001 From: w3bdesign <45217974+w3bdesign@users.noreply.github.com> Date: Mon, 14 Sep 2020 20:42:52 +0200 Subject: [PATCH] Fix not being able to fetch single product --- pages/produkt/[slug].js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/produkt/[slug].js b/pages/produkt/[slug].js index 04aed95e5..fe3347897 100644 --- a/pages/produkt/[slug].js +++ b/pages/produkt/[slug].js @@ -36,7 +36,7 @@ export default withRouter(Produkt); export async function getServerSideProps({ query: { productId } }) { const res = await client.query({ query: GET_SINGLE_PRODUCT, - variables: { productId }, + variables: { id: productId }, }); return {