fix: Blank page after deleting contact (#3948)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user