We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 22395ab + 381aaef commit 9815c9eCopy full SHA for 9815c9e
1 file changed
src/components/events/partials/wizards/summaryTables/MetadataSummaryTable.tsx
@@ -15,7 +15,7 @@ const MetadataSummaryTable = ({
15
header
16
}: {
17
metadataCatalogs: MetadataCatalog[],
18
- formikValues: { [key: string]: string | string[] | boolean },
+ formikValues: { [key: string]: string | string[] | boolean | Date },
19
header: ParseKeys,
20
}) => {
21
const { t } = useTranslation();
@@ -55,6 +55,10 @@ const MetadataSummaryTable = ({
55
)
56
}
57
58
+ if (fieldValue instanceof Date) {
59
+ fieldValue = t("dateFormats.dateTime.short", { dateTime: fieldValue })
60
+ }
61
+
62
metadata = metadata.concat({
63
name: metadataFields[i].id,
64
label: metadataFields[i].label,
0 commit comments