Fix for #5633 - making sure when timestamp is null (creating row) date picker can be used.
This commit is contained in:
parent
aaf60ee555
commit
4439b91a54
|
@ -20,6 +20,9 @@
|
|||
export let readonly
|
||||
|
||||
const resolveTimeStamp = timestamp => {
|
||||
if (!timestamp) {
|
||||
return null
|
||||
}
|
||||
let maskedDate = new Date(`0-${timestamp}`)
|
||||
if (maskedDate instanceof Date && !isNaN(maskedDate.getTime())) {
|
||||
return maskedDate
|
||||
|
|
Loading…
Reference in New Issue