fix for empty strings

This commit is contained in:
Davide Alberani 2018-02-09 16:36:01 +01:00
parent b013d39d67
commit e7d1ed6faa
2 changed files with 4 additions and 1 deletions

3
dist/history.html vendored
View file

@ -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() {

2
dist/index.html vendored
View file

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