diff --git a/ui/src/components/trainingReport/trainingReportForm.vue b/ui/src/components/trainingReport/trainingReportForm.vue index e224edf..fe11b8b 100644 --- a/ui/src/components/trainingReport/trainingReportForm.vue +++ b/ui/src/components/trainingReport/trainingReportForm.vue @@ -31,20 +31,20 @@ const { handleSubmit, resetForm, errors, values, setFieldValue } = useForm({ }) watch(errors, (newErrors) => { - console.log(newErrors) + console.log(newErrors) }, { deep: true }) watch(values, (newErrors) => { - console.log(newErrors.attendees) + console.log(newErrors.attendees) }, { deep: true }) watch(() => values.course_id, (newCourseId, oldCourseId) => { if (!oldCourseId) return; - values.attendees.forEach((a, index) => { - setFieldValue(`attendees[${index}].passed_bookwork`, false); - setFieldValue(`attendees[${index}].passed_qual`, false); - }); + values.attendees.forEach((a, index) => { + setFieldValue(`attendees[${index}].passed_bookwork`, false); + setFieldValue(`attendees[${index}].passed_qual`, false); + }); }); const submitForm = handleSubmit(onSubmit); @@ -189,7 +189,8 @@ onMounted(async () => {