Merge pull request #5634 from Budibase/fix/5633

Fix for date picker on row creation
This commit is contained in:
Michael Drury 2022-04-28 15:06:06 +01:00 committed by GitHub
commit daabb9ea22
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