Resolve cc contract car query error with service dates IO-728

This commit is contained in:
Patrick Fic
2021-03-03 11:11:03 -08:00
parent 2588fffad3
commit 598741372a
2 changed files with 21 additions and 22 deletions

View File

@@ -3,9 +3,12 @@ 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);
const { loading, error, data } = useQuery(QUERY_AVAILABLE_CC, {
variables: { today: moment().format("YYYY-MM-DD") },
});
const [selectedCar, setSelectedCar] = selectedCarState;