From db1efdcfa99e55f54fbd0b15d9c0399aca780ff3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaume=20Sol=C3=ADs?= Date: Thu, 18 Apr 2024 13:56:35 +0200 Subject: [PATCH] no era el itemfk sino el id --- src/stores/cart.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stores/cart.js b/src/stores/cart.js index 5d00258..e759d1d 100644 --- a/src/stores/cart.js +++ b/src/stores/cart.js @@ -194,7 +194,7 @@ export const useCartStore = defineStore("cart", () => { const params = transformOptionsToParams( availabilityForm.value || availability.value ); - const correctProduct = await apiBack.get(`products/${product.itemFk}`, { params }); + const correctProduct = await apiBack.get(`products/${product.id}`, { params }); console.log(hasCurrentProduct) await getProducts(params);