From 0ec3a560414be178f1f5064b29031693bf255658 Mon Sep 17 00:00:00 2001 From: Sivin Varghese <64252451+iamsivin@users.noreply.github.com> Date: Wed, 9 Feb 2022 14:35:18 +0530 Subject: [PATCH] fix: Blank page after deleting contact (#3948) --- .../routes/dashboard/conversation/contact/ContactInfo.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/javascript/dashboard/routes/dashboard/conversation/contact/ContactInfo.vue b/app/javascript/dashboard/routes/dashboard/conversation/contact/ContactInfo.vue index 4d2d98413..4a58d8a54 100644 --- a/app/javascript/dashboard/routes/dashboard/conversation/contact/ContactInfo.vue +++ b/app/javascript/dashboard/routes/dashboard/conversation/contact/ContactInfo.vue @@ -266,6 +266,9 @@ export default { await this.$store.dispatch('contacts/delete', id); this.$emit('panel-close'); this.showAlert(this.$t('DELETE_CONTACT.API.SUCCESS_MESSAGE')); + if (this.$route.name !== 'contacts_dashboard') { + this.$router.push({ name: 'contacts_dashboard' }); + } } catch (error) { this.showAlert( error.message