search view meal plan working

This commit is contained in:
vabene1111
2023-02-19 08:42:23 +01:00
parent 1c8cb69cf3
commit 2280d04fd2
2 changed files with 20 additions and 13 deletions

View File

@ -216,9 +216,9 @@ export default {
}
if (this.entry === null) {
this.entryEditing = useMealPlanStore().empty_meal_plan
this.entryEditing = Object.assign({}, useMealPlanStore().empty_meal_plan, null)
} else {
this.entryEditing = this.entry
this.entryEditing = Object.assign({}, this.entry, null)
}
if (this.create_date) {
@ -256,7 +256,6 @@ export default {
}
})
} else {
console.log('CALLING UPDATE')
useMealPlanStore().updateObject(this.entryEditing)
}
},