fix for empty strings
This commit is contained in:
parent
b013d39d67
commit
e7d1ed6faa
2 changed files with 4 additions and 1 deletions
3
dist/history.html
vendored
3
dist/history.html
vendored
|
@ -91,6 +91,9 @@ var app = new Vue({
|
||||||
return cid.substring(0, 7);
|
return cid.substring(0, 7);
|
||||||
},
|
},
|
||||||
prettifyDate: function(date) {
|
prettifyDate: function(date) {
|
||||||
|
if (!date) {
|
||||||
|
return '';
|
||||||
|
}
|
||||||
return date.substring(0, date.indexOf('.'));
|
return date.substring(0, date.indexOf('.'));
|
||||||
},
|
},
|
||||||
updateFilter: function() {
|
updateFilter: function() {
|
||||||
|
|
2
dist/index.html
vendored
2
dist/index.html
vendored
|
@ -101,7 +101,7 @@ var app = new Vue({
|
||||||
return link;
|
return link;
|
||||||
},
|
},
|
||||||
prettifyLastCheck: function(item) {
|
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('.'));
|
return last.substring(0, last.indexOf('.'));
|
||||||
},
|
},
|
||||||
triggerString: function(item) {
|
triggerString: function(item) {
|
||||||
|
|
Loading…
Reference in a new issue