reenabled submitting form
This commit is contained in:
@@ -52,10 +52,9 @@ function onSubmit(vals) {
|
|||||||
...vals,
|
...vals,
|
||||||
event_date: toMySQLDateTime(new Date(vals.event_date)),
|
event_date: toMySQLDateTime(new Date(vals.event_date)),
|
||||||
}
|
}
|
||||||
console.log(clean);
|
postTrainingReport(clean).then((newID) => {
|
||||||
// postTrainingReport(clean).then((newID) => {
|
emit("submit", newID);
|
||||||
// emit("submit", newID);
|
});
|
||||||
// });
|
|
||||||
} 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