diff --git a/app/javascript/dashboard/routes/dashboard/conversation/contact/ContactInfo.vue b/app/javascript/dashboard/routes/dashboard/conversation/contact/ContactInfo.vue index d8213828f..2b6001729 100644 --- a/app/javascript/dashboard/routes/dashboard/conversation/contact/ContactInfo.vue +++ b/app/javascript/dashboard/routes/dashboard/conversation/contact/ContactInfo.vue @@ -203,16 +203,14 @@ export default { this.updateContactField({ [field]: value }); }, async updateContactField(attrs) { + const contactId = this.contact.id; try { await this.$store.dispatch('contacts/update', { - id: this.contact.id, + id: contactId, ...attrs, }); useAlert(this.$t('CONTACT_FORM.SUCCESS_MESSAGE')); - await this.$store.dispatch( - 'contacts/fetchContactableInbox', - this.contact.id - ); + await this.$store.dispatch('contacts/fetchContactableInbox', contactId); } catch (error) { if (error instanceof DuplicateContactException) { const detail = error.contactErrorDetail;