From 622f08fb1bb8faf1050111fc400e283384114f14 Mon Sep 17 00:00:00 2001 From: kolaente Date: Sun, 20 Feb 2022 21:34:45 +0100 Subject: [PATCH] fix: lint --- src/views/tasks/ShowTasks.vue | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/views/tasks/ShowTasks.vue b/src/views/tasks/ShowTasks.vue index d14203ca..28cdc212 100644 --- a/src/views/tasks/ShowTasks.vue +++ b/src/views/tasks/ShowTasks.vue @@ -89,18 +89,16 @@ const { const showAll = computed(() => typeof dateFrom === 'undefined' || typeof dateTo === 'undefined') const pageTitle = computed(() => { - let title = '' - // We need to define "key" because it is the first parameter in the array and we need the second - // eslint-disable-next-line no-unused-vars const predefinedRange = Object.entries(DATE_RANGES) + // eslint-disable-next-line no-unused-vars .find(([key, value]) => dateFrom === value[0] && dateTo === value[1]) ?.[0] if (typeof predefinedRange !== 'undefined') { return t(`input.datepickerRange.ranges.${predefinedRange}`) } - return showAll + return showAll.value ? t('task.show.titleCurrent') : t('task.show.fromuntil', { from: formatDate(dateFrom, 'PPP'),