develop #10

Merged
pablone merged 64 commits from develop into master 2024-04-22 11:35:55 +00:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit c66d6b4c97 - Show all commits

View File

@ -194,7 +194,7 @@ export const useCartStore = defineStore("cart", () => {
const params = transformOptionsToParams(
availabilityForm.value || availability.value
);
const { correctProduct: { data }, } = await apiBack.get(`products/${product.id}`, { params });
const correctProduct = await apiBack.get(`products/${product.id}`, { params });
//await getProducts(params);
const hasCurrentProduct = computed(() => {
@ -202,7 +202,7 @@ export const useCartStore = defineStore("cart", () => {
});
//if (isEmpty.value) {
if (correctProduct.length === 0) {
if (correctProduct.data.length === 0) {
push("/");
return quasarNotify({
message: