Skip to content
Snippets Groups Projects
Commit 204eb92f authored by Julian's avatar Julian
Browse files

Recognize absencereason as nullable

parent bad76f1e
No related branches found
No related tags found
1 merge request!373Resolve "Suggest creating Kolego absence for the rest of the day when entering absences"
...@@ -116,7 +116,7 @@ export default { ...@@ -116,7 +116,7 @@ export default {
participationStatus.isOptimistic = newStatus.isOptimistic; participationStatus.isOptimistic = newStatus.isOptimistic;
}); });
this.markAsAbsentDay.reason = incomingStatuses[0].absenceReason.name; this.markAsAbsentDay.reason = incomingStatuses[0].absenceReason?.name;
this.markAsAbsentDay.num = incomingStatuses.length; this.markAsAbsentDay.num = incomingStatuses.length;
return storedDocumentations; return storedDocumentations;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment