From 112112b069d8cbc6cd36559c420b80735e0c45c9 Mon Sep 17 00:00:00 2001 From: wbuezas Date: Wed, 27 Mar 2024 09:13:53 -0300 Subject: [PATCH] Small change --- src/components/WorkerTimeControlCalendar.vue | 1 - src/pages/Worker/Card/WorkerTimeControl.vue | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/components/WorkerTimeControlCalendar.vue b/src/components/WorkerTimeControlCalendar.vue index 01b5af8ae..582da3406 100644 --- a/src/components/WorkerTimeControlCalendar.vue +++ b/src/components/WorkerTimeControlCalendar.vue @@ -107,7 +107,6 @@ const paintWorkWeeks = async () => { const element = workWeeksElements.value[i]; const week = Number(element.innerHTML); const weekState = workerTimeControlMailsMap.value.get(week); - const { className, title } = stateClasses[weekState] || {}; element.classList.remove('confirmed', 'revise', 'sended'); diff --git a/src/pages/Worker/Card/WorkerTimeControl.vue b/src/pages/Worker/Card/WorkerTimeControl.vue index 4300f4803..344688bc7 100644 --- a/src/pages/Worker/Card/WorkerTimeControl.vue +++ b/src/pages/Worker/Card/WorkerTimeControl.vue @@ -275,7 +275,6 @@ const fetchWeekData = async () => { const data = await fetchWorkerTimeControlMails(filter); if (!data.length) { state.value = null; - return; } else { const [mail] = data; state.value = mail.state; @@ -300,7 +299,6 @@ const canBeResend = async () => { }; const data = await fetchWorkerTimeControlMails(filter); - if (data.length) canResend.value = true; }; @@ -466,7 +464,7 @@ onMounted(async () => { @click="showReasonForm()" />