Fix for #5633 - making sure when timestamp is null (creating row) date picker can be used.

This commit is contained in:
mike12345567 2022-04-28 13:18:10 +01:00
parent aaf60ee555
commit 4439b91a54
1 changed files with 3 additions and 0 deletions

View File

@ -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