no era el itemfk sino el id
This commit is contained in:
parent
7fea3f9aaf
commit
db1efdcfa9
|
@ -194,7 +194,7 @@ export const useCartStore = defineStore("cart", () => {
|
||||||
const params = transformOptionsToParams(
|
const params = transformOptionsToParams(
|
||||||
availabilityForm.value || availability.value
|
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)
|
console.log(hasCurrentProduct)
|
||||||
await getProducts(params);
|
await getProducts(params);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue