diff --git a/dist/history.html b/dist/history.html index 53d441d..2db1382 100644 --- a/dist/history.html +++ b/dist/history.html @@ -91,6 +91,9 @@ var app = new Vue({ return cid.substring(0, 7); }, prettifyDate: function(date) { + if (!date) { + return ''; + } return date.substring(0, date.indexOf('.')); }, updateFilter: function() { diff --git a/dist/index.html b/dist/index.html index d89970b..d7560f9 100644 --- a/dist/index.html +++ b/dist/index.html @@ -101,7 +101,7 @@ var app = new Vue({ return link; }, prettifyLastCheck: function(item) { - var last = item.last_history && item.last_history.message; + var last = (item.last_history && item.last_history.message) || ''; return last.substring(0, last.indexOf('.')); }, triggerString: function(item) {