From 0710cea9e5b910f82350c42906cc243429a7e386 Mon Sep 17 00:00:00 2001 From: kolaente Date: Wed, 29 Dec 2021 21:33:55 +0100 Subject: [PATCH] fix: lint --- src/components/date/datepickerWithRange.vue | 3 +-- src/views/tasks/ShowTasks.vue | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/components/date/datepickerWithRange.vue b/src/components/date/datepickerWithRange.vue index b5f9c30f..dd4ae158 100644 --- a/src/components/date/datepickerWithRange.vue +++ b/src/components/date/datepickerWithRange.vue @@ -79,7 +79,6 @@ const flatPickerConfig = computed(() => ({ }, })) -const showPopup = ref(false) const dateRange = ref('') watch( @@ -99,7 +98,7 @@ watch( dateFrom: new Date(fromDate), dateTo: new Date(toDate), }) - } + }, ) function formatDate(date: Date): string { diff --git a/src/views/tasks/ShowTasks.vue b/src/views/tasks/ShowTasks.vue index 70ca7212..5ab96875 100644 --- a/src/views/tasks/ShowTasks.vue +++ b/src/views/tasks/ShowTasks.vue @@ -104,7 +104,7 @@ export default { ? this.$t('task.show.titleCurrent') : this.$t('task.show.fromuntil', { from: this.format(this.dateFrom, 'PPP'), - until: this.format(this.dateTo, 'PPP') + until: this.format(this.dateTo, 'PPP'), }) this.setTitle(title) @@ -116,7 +116,7 @@ export default { // soonest before the later ones. // We can't use the api sorting here because that sorts tasks with a due date after // ones without a due date. - return this.tasks.sort((a, b) => { + return [...this.tasks].sort((a, b) => { const sortByDueDate = b.dueDate - a.dueDate return sortByDueDate === 0 ? b.id - a.id