From 36de1ad4003c716e94b96f62f710cd39e8ef5ed3 Mon Sep 17 00:00:00 2001 From: alexm Date: Fri, 29 Nov 2024 07:27:14 +0100 Subject: [PATCH] fix(MailForwarding): add try catch --- src/pages/Account/Card/AccountMailForwarding.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/pages/Account/Card/AccountMailForwarding.vue b/src/pages/Account/Card/AccountMailForwarding.vue index aa92e5072..30849d44a 100644 --- a/src/pages/Account/Card/AccountMailForwarding.vue +++ b/src/pages/Account/Card/AccountMailForwarding.vue @@ -41,8 +41,12 @@ const fetchAccountExistence = async () => { }; const fetchMailForwards = async () => { - const response = await axios.get(`MailForwards/${route.params.id}`); - return response.data; + try { + const response = await axios.get(`MailForwards/${route.params.id}`); + return response.data; + } catch { + return null; + } }; const deleteMailForward = async () => {