Training-Report #27
@@ -52,10 +52,9 @@ function onSubmit(vals) {
|
||||
...vals,
|
||||
event_date: toMySQLDateTime(new Date(vals.event_date)),
|
||||
}
|
||||
console.log(clean);
|
||||
// postTrainingReport(clean).then((newID) => {
|
||||
// emit("submit", newID);
|
||||
// });
|
||||
postTrainingReport(clean).then((newID) => {
|
||||
emit("submit", newID);
|
||||
});
|
||||
} catch (err) {
|
||||
console.log("There was an error submitting the training report", err);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user