Fix history table stopped time showing as "n/a"

This commit is contained in:
JonnyWong16 2017-12-31 18:36:57 -08:00
parent 9d01335395
commit 4e3b95950f

View file

@ -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));