hotfix: #7323 catch mail err #1225
No reviewers
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: verdnatura/salix-front#1225
Loading…
Reference in New Issue
No description provided.
Delete Branch "hotfix-7323-catchMailErr"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -284,4 +284,2 @@
week: selectedWeekNumber.value,
};
const mail = (
await axiosNoError.get(`Workers/${route.params.id}/mail`, {
Si esta llamada falla, salta el siguiente error: https://cau.verdnatura.es/scp/tickets.php?id=260061#note .
La llamada hay que hacerla para comprobar si mostrar el botón de conforme/no conforme/razón/enviar
@ -289,2 +286,2 @@
})
).data[0];
try {
const [{ data: mailData }, { data: countData }] = await Promise.all([
Si la llamada no falla, siempre va a devolver un obj. con una clave data.
@ -293,3 +294,1 @@
else {
state.value = mail.state;
reason.value = mail.reason;
const mail = mailData[0];
Siempre devuelve array Workers/:id/mail
fix: catch mail errto hotfix: #7323 catch mail err