updated API correclty this time

This commit is contained in:
smilerz 2023-12-17 19:38:34 -06:00
parent a59a78f44c
commit 8bbccad7a9
No known key found for this signature in database
GPG Key ID: 39444C7606D47126

View File

@ -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)
})