1
0
Fork 0
mirror of synced 2024-08-05 05:11:43 +12:00

Handle dateonly by default

This commit is contained in:
Adria Navarro 2024-06-06 13:25:13 +02:00
parent f09b6bf090
commit 9ad1d60850

View file

@ -69,9 +69,13 @@
}
},
[FieldType.DATETIME]: (_field, schema) => {
return {
const props = {
valueAsTimestamp: !schema?.timeOnly,
}
if (schema?.dateOnly) {
props.enableTime = false
}
return props
},
}