Update ui/src/components/trainingReport/trainingReportForm.vue #36

Merged
Ajdj100 merged 10 commits from training-report-cbox-reset into main 2025-11-28 16:00:27 -06:00
Showing only changes of commit 40e097fc71 - Show all commits

View File

@@ -30,13 +30,13 @@ const { handleSubmit, resetForm, errors, values, setFieldValue } = useForm({
} }
}) })
watch(errors, (newErrors) => { // watch(errors, (newErrors) => {
console.log(newErrors) // console.log(newErrors)
}, { deep: true }) // }, { deep: true })
watch(values, (newErrors) => { // watch(values, (newErrors) => {
console.log(newErrors.attendees) // console.log(newErrors.attendees)
}, { deep: true }) // }, { deep: true })
watch(() => values.course_id, (newCourseId, oldCourseId) => { watch(() => values.course_id, (newCourseId, oldCourseId) => {
if (!oldCourseId) return; if (!oldCourseId) return;
@@ -67,7 +67,7 @@ function onSubmit(vals) {
emit("submit", newID); emit("submit", newID);
}); });
} catch (err) { } catch (err) {
console.log("There was an error submitting the training report", err); console.error("There was an error submitting the training report", err);
} }
} }