diff --git a/resources/js/wishlist.js b/resources/js/wishlist.js index 0232e3c..79c70de 100644 --- a/resources/js/wishlist.js +++ b/resources/js/wishlist.js @@ -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])