From b8e6e98a748b6edc1f20f76140abc25d496ff9f0 Mon Sep 17 00:00:00 2001 From: Mathieu Jaumotte Date: Thu, 6 May 2021 10:44:15 +0200 Subject: [PATCH] fix payload error with add participation --- .../Resources/public/vuejs/AccompanyingCourse/store/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/store/index.js b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/store/index.js index 48cec2f86..74f18db10 100644 --- a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/store/index.js +++ b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/store/index.js @@ -78,8 +78,8 @@ let getDataPromise = getAccompanyingCourse(id) }); }, addParticipation({ commit }, payload) { - console.log('## action: fetch post participation: payload', payload.person.id); - postParticipation(id, payload.person.id, 'POST') + console.log('## action: fetch post participation: payload', payload.id); + postParticipation(id, payload.id, 'POST') .then(participation => new Promise((resolve, reject) => { commit('addParticipation', { participation, payload }); resolve();