From 76ac300cf004d947272cc95a9745e4a03c3021ba Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Fri, 17 May 2024 16:53:28 +0200 Subject: [PATCH] Save only if valid --- packages/server/src/api/controllers/row/ExternalRequest.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/server/src/api/controllers/row/ExternalRequest.ts b/packages/server/src/api/controllers/row/ExternalRequest.ts index 823330d601..b30c97e289 100644 --- a/packages/server/src/api/controllers/row/ExternalRequest.ts +++ b/packages/server/src/api/controllers/row/ExternalRequest.ts @@ -347,7 +347,8 @@ export class ExternalRequest { } 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 {