fix: custom date range with nothing specified
This commit is contained in:
parent
d128c4a71f
commit
fd4eec4769
|
@ -88,8 +88,8 @@ const to = ref<string>('')
|
||||||
|
|
||||||
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,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in New Issue
Block a user