fix: lint
continuous-integration/drone/pr Build is failing Details

This commit is contained in:
kolaente 2021-12-29 21:33:55 +01:00
parent 294e89b6f7
commit 0710cea9e5
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
2 changed files with 3 additions and 4 deletions

View File

@ -79,7 +79,6 @@ const flatPickerConfig = computed(() => ({
},
}))
const showPopup = ref<Boolean>(false)
const dateRange = ref<string>('')
watch(
@ -99,7 +98,7 @@ watch(
dateFrom: new Date(fromDate),
dateTo: new Date(toDate),
})
}
},
)
function formatDate(date: Date): string {

View File

@ -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