[fix] empty date return empty string

This commit is contained in:
Laurent Peuch 2018-11-03 04:41:17 +01:00
parent 5c4dd01df6
commit e4fc3c08dc
2 changed files with 4 additions and 0 deletions

View file

@ -36,6 +36,8 @@
},
methods: {
timestampToDate: function (timestamp) {
if (timestamp === null) return "";
return new Date(timestamp * 1000).toLocaleString()
}
}

View file

@ -38,6 +38,8 @@
},
methods: {
timestampToDate: function (timestamp) {
if (timestamp === null) return "";
return new Date(timestamp * 1000).toLocaleString()
},
cancelJob: function() {