fix: custom date range with nothing specified

This commit is contained in:
kolaente 2022-01-09 14:06:51 +01:00
parent 1e46849c78
commit 16f48bcc2d
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -90,8 +90,8 @@ const to = ref('')
function emitChanged() { function emitChanged() {
emit('dateChanged', { emit('dateChanged', {
dateFrom: from.value, dateFrom: from.value === '' ? null : from.value,
dateTo: to.value, dateTo: to.value === '' ? null : to.value,
}) })
} }