Dateityp-Belegarten in Detailinfo anzeigen

This commit is contained in:
2026-05-19 15:26:44 +02:00
parent 6d9bceb63f
commit f9d3f10eae

View File

@@ -41,6 +41,10 @@ const renderDatapointValue = (datapoint) => {
const value = getDatapointValue(datapoint)
if (value === null || value === undefined || value === "") return "-"
if (datapoint.displayFunction) {
return datapoint.displayFunction(value, props.item)
}
if (datapoint.inputType === "date") {
return dayjs(value).isValid() ? dayjs(value).format("DD.MM.YYYY") : String(value)
}