fix: custom date range with nothing specified

This commit is contained in:
kolaente 2022-01-09 14:06:51 +01:00
parent d128c4a71f
commit fd4eec4769
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 2 additions and 2 deletions

View File

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