bug fixed chrash if null

This commit is contained in:
Tim Zieger 2020-05-29 10:05:18 +02:00
parent d1910ea10d
commit 04abba8c1c

View File

@ -114,10 +114,15 @@ export default {
records[index].startdate = start[1];
records[index].date = start[0];
try{
var end = record.enddate;
end = end.split("T");
records[index].enddate = end[1];
records[index].enddate = end[1];
}catch(e){
records[index].enddate = "pending";
}
}
this.timeRecords = records;