Fix for #5633 - making sure when timestamp is null (creating row) date picker can be used.
This commit is contained in:
parent
d0d46d371f
commit
98bffe1971
|
@ -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