diff --git a/src/main-layout/SessionWindow/SessionTab/SessionManagement/FixForm.tsx b/src/main-layout/SessionWindow/SessionTab/SessionManagement/FixForm.tsx index 4445167..b150b8a 100644 --- a/src/main-layout/SessionWindow/SessionTab/SessionManagement/FixForm.tsx +++ b/src/main-layout/SessionWindow/SessionTab/SessionManagement/FixForm.tsx @@ -134,7 +134,9 @@ export class FixForm extends React.Component { case 'monthyear': case 'utcdateonly': case 'utctimeonly': - value = value?.toISOString(); + if (typeof value === "object") { + value = value?.toISOString(); + } break; } diff --git a/src/main-layout/SessionWindow/SessionTab/SessionManagement/FixHeaderForm.tsx b/src/main-layout/SessionWindow/SessionTab/SessionManagement/FixHeaderForm.tsx index 5f99308..c94701d 100644 --- a/src/main-layout/SessionWindow/SessionTab/SessionManagement/FixHeaderForm.tsx +++ b/src/main-layout/SessionWindow/SessionTab/SessionManagement/FixHeaderForm.tsx @@ -57,13 +57,15 @@ export class FixHeaderForm extends React.Component property.indexOf(`${namePrefix}__${name}__${fieldIterationIndex}`) > -1) filteredProperties.forEach(property => { - let value = inputData[property] + let value = inputData[property]; switch (field.def.type.toLowerCase()) { case "utctimestamp": case 'monthyear': case 'utcdateonly': case 'utctimeonly': - value = value?.toISOString(); + if (typeof value === "object") { + value = value?.toISOString(); + } break; }