diff --git a/src/components/date/datepickerWithRange.vue b/src/components/date/datepickerWithRange.vue index b5f9c30f8..dd4ae158a 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 70ca72126..5ab96875a 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