From 8bbccad7a9f92fe964eb88f31c947dc034ba4734 Mon Sep 17 00:00:00 2001 From: smilerz Date: Sun, 17 Dec 2023 19:38:34 -0600 Subject: [PATCH] updated API correclty this time --- vue/src/stores/MealPlanStore.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/vue/src/stores/MealPlanStore.js b/vue/src/stores/MealPlanStore.js index f3207266..daac0cb9 100644 --- a/vue/src/stores/MealPlanStore.js +++ b/vue/src/stores/MealPlanStore.js @@ -50,13 +50,8 @@ export const useMealPlanStore = defineStore(_STORE_ID, { if (this.currently_updating !== [from_date, to_date]) { this.currently_updating = [from_date, to_date] // certainly no perfect check but better than nothing - let options = { - from_date: from_date, - to_date: to_date, - } - let apiClient = new ApiApiFactory() - apiClient.listMealPlans(options).then((r) => { + apiClient.listMealPlans(from_date, to_date).then((r) => { r.data.forEach((p) => { Vue.set(this.plans, p.id, p) })