bug fixed chrash if null
This commit is contained in:
parent
d1910ea10d
commit
04abba8c1c
@ -113,11 +113,16 @@ export default {
|
|||||||
start = start.split("T");
|
start = start.split("T");
|
||||||
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