Fix history table stopped time showing as "n/a"
This commit is contained in:
@@ -205,7 +205,7 @@ history_table_options = {
|
|||||||
"targets": [9],
|
"targets": [9],
|
||||||
"data":"stopped",
|
"data":"stopped",
|
||||||
"createdCell": function (td, cellData, rowData, row, col) {
|
"createdCell": function (td, cellData, rowData, row, col) {
|
||||||
if (cellData === null || rowData['state'] != "stopped") {
|
if (cellData === null || (rowData['state'] != null && rowData['state'] != "stopped")) {
|
||||||
$(td).html('n/a');
|
$(td).html('n/a');
|
||||||
} else {
|
} else {
|
||||||
$(td).html(moment(cellData,"X").format(time_format));
|
$(td).html(moment(cellData,"X").format(time_format));
|
||||||
|
Reference in New Issue
Block a user