From 4e3b95950ff1ad20bcc8602953d717fc772f1eed Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Sun, 31 Dec 2017 18:36:57 -0800 Subject: [PATCH] Fix history table stopped time showing as "n/a" --- data/interfaces/default/js/tables/history_table.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/interfaces/default/js/tables/history_table.js b/data/interfaces/default/js/tables/history_table.js index be61ec49..0af932af 100644 --- a/data/interfaces/default/js/tables/history_table.js +++ b/data/interfaces/default/js/tables/history_table.js @@ -205,7 +205,7 @@ history_table_options = { "targets": [9], "data":"stopped", "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'); } else { $(td).html(moment(cellData,"X").format(time_format));