Bugfix: Fehler bei nicht vorhandenen Daten beseitigen

This commit is contained in:
2022-01-10 14:47:05 +01:00
parent efadeb501b
commit 646537e19c
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -12,10 +12,10 @@
Controller.nextDay()
});
},
'nextDay': () => {
'nextDay': async () => {
let actDate = new TimekeepingDate(activeRecord.workingDay)
let nextDay = actDate.getNextDay()
activeRecord = WorkingHoursRepository.readOrNew(nextDay.getDateString())
activeRecord = await WorkingHoursRepository.readOrNew(nextDay.getDateString())
},
'cancelActiveRecord': () => {
activeRecord = null;