mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-02 12:49:02 -05:00
updated API correclty this time
This commit is contained in:
@@ -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)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user