diff --git a/src/pages/Account/Card/AccountMailAlias.vue b/src/pages/Account/Card/AccountMailAlias.vue index 99ce3ab22..594353219 100644 --- a/src/pages/Account/Card/AccountMailAlias.vue +++ b/src/pages/Account/Card/AccountMailAlias.vue @@ -85,7 +85,7 @@ const fetchMailAliases = async () => { paginateRef.value.fetch(); }; -const getAccountData = async () => { +const getAccountData = async (reload = true) => { loading.value = true; hasAccount.value = await fetchAccountExistence(); if (!hasAccount.value) { @@ -93,7 +93,7 @@ const getAccountData = async () => { store.data = []; return; } - await fetchMailAliases(); + reload && (await fetchMailAliases()); loading.value = false; }; @@ -102,13 +102,11 @@ const openCreateMailAliasForm = () => createMailAliasDialogRef.value.show(); watch( () => route.params.id, () => { - store.url = urlPath; - store.filter = filter.value; getAccountData(); } ); -onMounted(async () => await getAccountData()); +onMounted(async () => await getAccountData(false));