From 04abba8c1c18213f7ae4c7afe0b2882491588c2f Mon Sep 17 00:00:00 2001 From: Tim Zieger Date: Fri, 29 May 2020 10:05:18 +0200 Subject: [PATCH] bug fixed chrash if null --- frontend/src/views/TimeRecords.vue | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/frontend/src/views/TimeRecords.vue b/frontend/src/views/TimeRecords.vue index 47a946a..33485ef 100644 --- a/frontend/src/views/TimeRecords.vue +++ b/frontend/src/views/TimeRecords.vue @@ -113,11 +113,16 @@ export default { start = start.split("T"); 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;