Save only if valid
This commit is contained in:
parent
a81626005c
commit
76ac300cf0
1 changed files with 2 additions and 1 deletions
|
@ -347,7 +347,8 @@ export class ExternalRequest<T extends Operation> {
|
|||
} else if (
|
||||
field.type === FieldType.DATETIME &&
|
||||
field.timeOnly &&
|
||||
row[key]
|
||||
row[key] &&
|
||||
dayjs(row[key]).isValid()
|
||||
) {
|
||||
newRow[key] = dayjs(row[key]).format("HH:mm")
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue