fix: lint

This commit is contained in:
kolaente 2022-01-09 17:28:58 +01:00
parent 7aa2cfc8d4
commit 7135288800
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B
3 changed files with 4 additions and 2 deletions

View file

@ -191,7 +191,7 @@ const props = defineProps({
showSelectedOnButton: {
type: Boolean,
default: false,
}
},
})
// FIXME: This seems to always contain the default value - that breaks the picker

View file

@ -20,7 +20,7 @@ const props = defineProps({
hasOverflow: {
type: Boolean,
default: false,
}
},
})
function hidePopup(e) {

View file

@ -98,6 +98,8 @@ export default {
pageTitle() {
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(dateRanges).find(([key, value]) => this.dateFrom === value[0] && this.dateTo === value[1])
if (typeof predefinedRange !== 'undefined') {
title = this.$t(`input.datepickerRange.ranges.${predefinedRange[0]}`)