IO-743 CCC Automatic fill fixes.
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import { useQuery } from "@apollo/client";
|
||||
import moment from "moment";
|
||||
import React from "react";
|
||||
import { QUERY_AVAILABLE_CC } from "../../graphql/courtesy-car.queries";
|
||||
import AlertComponent from "../alert/alert.component";
|
||||
import ContractCarsComponent from "./contract-cars.component";
|
||||
import moment from "moment";
|
||||
|
||||
export default function ContractCarsContainer({ selectedCarState, form }) {
|
||||
const { loading, error, data } = useQuery(QUERY_AVAILABLE_CC, {
|
||||
@@ -14,6 +14,11 @@ export default function ContractCarsContainer({ selectedCarState, form }) {
|
||||
|
||||
const handleSelect = (record) => {
|
||||
setSelectedCar(record.id);
|
||||
|
||||
console.log(
|
||||
"🚀 ~ file: contract-cars.container.jsx ~ line 19 ~ record",
|
||||
record
|
||||
);
|
||||
form.setFieldsValue({
|
||||
kmstart: record.mileage,
|
||||
dailyrate: record.dailycost,
|
||||
|
||||
Reference in New Issue
Block a user