[CHANGE] Return empty field when no datetime available

This commit is contained in:
Peter Pfeufer
2025-02-25 18:01:58 +01:00
parent 960c9625fe
commit 5559ce5fbb

View File

@@ -105,6 +105,10 @@
{
data: 'last_connect',
render: (data) => {
if (data === null) {
return '';
}
return moment(data).utc().format(MUMBLESTATS_DATETIME_FORMAT);
},
className: 'text-end',
@@ -112,6 +116,10 @@
{
data: 'last_disconnect',
render: (data) => {
if (data === null) {
return '';
}
return moment(data).utc().format(MUMBLESTATS_DATETIME_FORMAT);
},
className: 'text-end',