Skip to content

Commit

Permalink
updated API correclty this time
Browse files Browse the repository at this point in the history
  • Loading branch information
smilerz committed Dec 18, 2023
1 parent 9df225b commit 4f8f62b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions vue/src/stores/MealPlanStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
Expand Down

0 comments on commit 4f8f62b

Please sign in to comment.