Fixed a bug in the Licenses columns.jsx

This commit is contained in:
2023-09-10 16:09:50 +02:00
parent 72fb351dcf
commit b77180579f

View File

@@ -9,7 +9,7 @@ export default [
{field: 'maxUses', headerName: 'Maximale Nutzungen', width: 180, renderCell: (params) =>
params.value === -1 ? "Unbegrenzt" : params.value},
{field: 'expirationDate', headerName: 'Ablaufdatum', width: 200, renderCell: (params) =>
new Date(params.value).getTime() !== 0 ? "Nie" : new Date(params.value).toLocaleString()},
new Date(params.value).getTime() === 0 ? "Nie" : new Date(params.value).toLocaleString()},
{field: 'actions', headerName: 'Aktionen', width: 80, renderCell: () => <Stack direction="row" gap={1}>
<IconButton size="small" color="primary"><Edit /></IconButton>
<IconButton size="small" color="error"><Delete /></IconButton>