bug fixed chrash if null
This commit is contained in:
parent
d1910ea10d
commit
04abba8c1c
@ -114,10 +114,15 @@ export default {
|
|||||||
records[index].startdate = start[1];
|
records[index].startdate = start[1];
|
||||||
records[index].date = start[0];
|
records[index].date = start[0];
|
||||||
|
|
||||||
|
try{
|
||||||
var end = record.enddate;
|
var end = record.enddate;
|
||||||
|
|
||||||
end = end.split("T");
|
end = end.split("T");
|
||||||
records[index].enddate = end[1];
|
records[index].enddate = end[1];
|
||||||
|
}catch(e){
|
||||||
|
records[index].enddate = "pending";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
this.timeRecords = records;
|
this.timeRecords = records;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user