Skip to content

Commit

Permalink
Added id to the query (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
BobWez98 authored Sep 1, 2022
1 parent 42d72e2 commit b8cd26f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/js/wishlist.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Vue.component('wishlist', require('Vendor/rapidez/wishlist/resources/js/Wishlist
document.addEventListener('turbolinks:load', () => {
window.app.$on('logged-in', async () => {
let response = await axios.post(config.magento_url + '/graphql', {
query: '{ customer { wishlists { id items_v2 { items { id product { sku } } } } } }'
query: '{ customer { wishlists { id items_v2 { items { id product { sku id } } } } } }'
}, { headers: { Authorization: `Bearer ${localStorage.token}` }})

localStorage.wishlist = JSON.stringify(response.data.data.customer.wishlists[0])
Expand Down

0 comments on commit b8cd26f

Please sign in to comment.