Merge branch '103-frontend-crashes-if-something-is-null' into 'master'
Resolve "Frontend crashes if something is null" Closes #103 See merge request marcel.schwarz/2020ss-qbc-geofence-timetracking!80
This commit is contained in:
commit
f509ad0d9a
@ -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];
|
||||
}catch(e){
|
||||
records[index].enddate = "pending";
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
this.timeRecords = records;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user