diff --git a/src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/components/Location/NewLocation.vue b/src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/components/Location/NewLocation.vue index 1b563d2a2..2920e15b2 100644 --- a/src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/components/Location/NewLocation.vue +++ b/src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/components/Location/NewLocation.vue @@ -244,13 +244,20 @@ export default { } }); } - postLocation(body).then(location => new Promise(resolve => { - console.log('postLocation', location); - this.locations.push(location); - this.$store.dispatch('updateLocation', location); - resolve(); - this.modal.showModal = false; - })); + postLocation(body) + .then( + location => new Promise(resolve => { + console.log('postLocation', location); + this.locations.push(location); + this.$store.dispatch('updateLocation', location); + resolve(); + this.modal.showModal = false; + }) + ).catch( + err => { + this.errors.push(err.message); + } + ); }; }, submitNewAddress(payload) {