null date string was breaking download for certain ranges

This commit is contained in:
Peter Clement 2023-02-27 15:03:25 +00:00
parent 7f35961e77
commit cb3d0c39bd
1 changed files with 3 additions and 3 deletions

View File

@ -298,13 +298,13 @@
on:change={e => { on:change={e => {
if (e.detail[0]?.length === 1) { if (e.detail[0]?.length === 1) {
startDate = e.detail[0][0].toISOString() startDate = e.detail[0][0].toISOString()
endDate = null endDate = ""
} else if (e.detail[0]?.length > 1) { } else if (e.detail[0]?.length > 1) {
startDate = e.detail[0][0].toISOString() startDate = e.detail[0][0].toISOString()
endDate = e.detail[0][1].toISOString() endDate = e.detail[0][1].toISOString()
} else { } else {
startDate = null startDate = ""
endDate = null endDate = ""
} }
}} }}
/> />