null date string was breaking download for certain ranges
This commit is contained in:
parent
7f35961e77
commit
cb3d0c39bd
|
@ -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 = ""
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Reference in New Issue