date-time detect fix

This commit is contained in:
iamanishroy
2023-02-11 19:09:03 +05:30
parent d621afca6d
commit 1464b63338

View File

@@ -96,6 +96,9 @@ export function detectType(value: any): ArraySupportedFiledTypes {
return FieldType.checkbox;
}
case "object": {
if (+new Date(value)) {
return FieldType.dateTime;
}
return FieldType.json;
}
default: {