Skip to content

Commit

Permalink
Fix not being able to fetch single product
Browse files Browse the repository at this point in the history
  • Loading branch information
w3bdesign committed Sep 14, 2020
1 parent 7a12e9c commit ad3fdca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/produkt/[slug].js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit ad3fdca

Please sign in to comment.