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

Fix TardinessField.vue errors

parent afb032e9
No related branches found
No related tags found
1 merge request!440Resolve "Allow editing of personal notes and participation status from person page widget"
...@@ -81,6 +81,10 @@ export default { ...@@ -81,6 +81,10 @@ export default {
this.saveValue(this.previousValue); this.saveValue(this.previousValue);
}, },
processValueObjectOptional(value) { processValueObjectOptional(value) {
if (value === null || value === undefined) {
return 0;
}
if (Object.hasOwn(value, "value")) { if (Object.hasOwn(value, "value")) {
return value.value; return value.value;
} }
...@@ -159,7 +163,7 @@ export default { ...@@ -159,7 +163,7 @@ export default {
{{ {{
$t("alsijil.personal_notes.confirm_delete_tardiness", { $t("alsijil.personal_notes.confirm_delete_tardiness", {
tardiness: previousValue, tardiness: previousValue,
name: participations.map((p) => p.person.firstName).join(", "), name: participations.map((p) => p.person?.firstName).join(", "),
}) })
}} }}
</template> </template>
......
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