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