0
0
Fork 0

fix(MailForwarding): add try catch

This commit is contained in:
Alex Moreno 2024-11-29 07:27:14 +01:00
parent 7a3e2c0a9b
commit 36de1ad400
1 changed files with 6 additions and 2 deletions

View File

@ -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 () => {