posprocessing hook for DRF

This commit is contained in:
vabene1111
2024-03-30 11:01:37 +01:00
parent cb98b6723f
commit dfd9f7b066
156 changed files with 11621 additions and 1118 deletions

View File

@@ -30,8 +30,8 @@ export default defineComponent({
testApi: function () {
const api = new ApiApi()
api.apiMealPlanList().then(r => {
if (r.length > 0) {
api.apiMealPlanUpdate({id: r[0].id, mealPlan: r[0]})
if (r.length > 0 && r[0].id != undefined) {
api.apiMealPlanUpdate({id: r[0].id, mealPlanRequest: r[0]})
}
})
}