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