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);
|
await this.$store.dispatch('contacts/delete', id);
|
||||||
this.$emit('panel-close');
|
this.$emit('panel-close');
|
||||||
this.showAlert(this.$t('DELETE_CONTACT.API.SUCCESS_MESSAGE'));
|
this.showAlert(this.$t('DELETE_CONTACT.API.SUCCESS_MESSAGE'));
|
||||||
|
if (this.$route.name !== 'contacts_dashboard') {
|
||||||
|
this.$router.push({ name: 'contacts_dashboard' });
|
||||||
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.showAlert(
|
this.showAlert(
|
||||||
error.message
|
error.message
|
||||||
|
|||||||
Reference in New Issue
Block a user