From d92b278b60b5f35ed45c10a48663935ab95de9a9 Mon Sep 17 00:00:00 2001 From: iamsivin Date: Wed, 8 Apr 2026 10:37:21 +0530 Subject: [PATCH] chore: Minor fix --- .../routes/dashboard/conversation/contact/ContactInfo.vue | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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;