Training-Report #27
@@ -17,6 +17,7 @@ import { Plus, X } from 'lucide-vue-next';
|
||||
import FieldSet from '../ui/field/FieldSet.vue'
|
||||
import FieldLegend from '../ui/field/FieldLegend.vue'
|
||||
import FieldDescription from '../ui/field/FieldDescription.vue'
|
||||
import Checkbox from '../ui/checkbox/Checkbox.vue'
|
||||
|
||||
const { handleSubmit, resetForm, errors } = useForm({
|
||||
validationSchema: toTypedSchema(trainingReportSchema),
|
||||
@@ -44,10 +45,7 @@ function onSubmit(vals) {
|
||||
...vals,
|
||||
event_date: toMySQLDateTime(new Date(vals.event_date)),
|
||||
}
|
||||
|
||||
postTrainingReport(clean);
|
||||
console.log("SUBMITTED:", clean)
|
||||
|
||||
} catch (err) {
|
||||
console.log("There was an error submitting the training report", err);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user