BOD-16 Added pages + routing for courtesy cars
This commit is contained in:
@@ -35,15 +35,17 @@ function JobsCreateContainer({ bodyshop }) {
|
||||
|
||||
useEffect(() => {
|
||||
if (!!state.owner.selectedid) {
|
||||
console.log("Loading Selected Owner ID");
|
||||
loadOwner({
|
||||
variables: { id: state.owner.selectedid }
|
||||
});
|
||||
}
|
||||
}, [state.owner.selectedid, loadOwner]);
|
||||
|
||||
useEffect(() => {
|
||||
document.title = t("titles.jobs-create");
|
||||
}, [t]);
|
||||
|
||||
const runInsertJob = job => {
|
||||
console.log("Job To Save", job);
|
||||
insertJob({ variables: { job: job } })
|
||||
.then(resp => {
|
||||
setState({
|
||||
@@ -63,8 +65,6 @@ function JobsCreateContainer({ bodyshop }) {
|
||||
};
|
||||
|
||||
const handleFinish = values => {
|
||||
console.log("Form Values", values);
|
||||
console.log("Progress State", state);
|
||||
let job = Object.assign(
|
||||
{},
|
||||
values,
|
||||
|
||||
Reference in New Issue
Block a user