Dateityp-Belegarten in Detailinfo anzeigen
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user