diff --git a/src/Bundle/ChillMainBundle/Resources/public/vuejs/OnTheFly/components/OnTheFly.vue b/src/Bundle/ChillMainBundle/Resources/public/vuejs/OnTheFly/components/OnTheFly.vue index 216c81672..a456637da 100644 --- a/src/Bundle/ChillMainBundle/Resources/public/vuejs/OnTheFly/components/OnTheFly.vue +++ b/src/Bundle/ChillMainBundle/Resources/public/vuejs/OnTheFly/components/OnTheFly.vue @@ -223,13 +223,12 @@ export default { "comment": data.comment, "telephone": data.phonenumber, "email": data.email, - "address": data.address + "address": null } - // console.log('body', body) postThirdparty(body) .then(thirdparty => new Promise((resolve, reject) => { // this.$parent.newPriorSuggestion(thirdparty); - // console.log('thirdparty created', thirdparty) + console.log('thirdparty created', thirdparty) resolve(); })); } else { @@ -243,9 +242,7 @@ export default { } // console.log('type', type, 'data', data) // pass datas to parent - if (this.action != 'addContact') { - this.$emit('saveFormOnTheFly', { type: type, data: data }); - } + this.$emit('saveFormOnTheFly', { type: type, data: data }); this.modal.showModal = false; },