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()" />