Skip to content

Commit ad3fdca

Browse files
committed
Fix not being able to fetch single product
1 parent 7a12e9c commit ad3fdca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pages/produkt/[slug].js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export default withRouter(Produkt);
3636
export async function getServerSideProps({ query: { productId } }) {
3737
const res = await client.query({
3838
query: GET_SINGLE_PRODUCT,
39-
variables: { productId },
39+
variables: { id: productId },
4040
});
4141

4242
return {

0 commit comments

Comments
 (0)