diff --git a/client/src/components/contract-jobs/contract-jobs.container.jsx b/client/src/components/contract-jobs/contract-jobs.container.jsx index 7a7034f16..56bfe5a9d 100644 --- a/client/src/components/contract-jobs/contract-jobs.container.jsx +++ b/client/src/components/contract-jobs/contract-jobs.container.jsx @@ -2,10 +2,10 @@ import { useQuery } from "@apollo/client"; import React from "react"; import { connect } from "react-redux"; import { createStructuredSelector } from "reselect"; +import { QUERY_ALL_ACTIVE_JOBS } from "../../graphql/jobs.queries"; import { selectBodyshop } from "../../redux/user/user.selectors"; import AlertComponent from "../alert/alert.component"; import ContractJobsComponent from "./contract-jobs.component"; -import { QUERY_ALL_ACTIVE_JOBS } from "../../graphql/jobs.queries"; const mapStateToProps = createStructuredSelector({ //currentUser: selectCurrentUser @@ -15,6 +15,7 @@ export function ContractJobsContainer({ selectedJobState, bodyshop }) { const { loading, error, data } = useQuery(QUERY_ALL_ACTIVE_JOBS, { variables: { statuses: bodyshop.md_ro_statuses.active_statuses || ["Open"], + isConverted: true, }, fetchPolicy: "network-only", nextFetchPolicy: "network-only", diff --git a/client/src/components/contracts-list/contracts-list.component.jsx b/client/src/components/contracts-list/contracts-list.component.jsx index 2d5576565..fa9439c65 100644 --- a/client/src/components/contracts-list/contracts-list.component.jsx +++ b/client/src/components/contracts-list/contracts-list.component.jsx @@ -4,14 +4,14 @@ import queryString from "query-string"; import React, { useState } from "react"; import { useTranslation } from "react-i18next"; import { Link, useHistory, useLocation } from "react-router-dom"; +import { setModalContext } from "../../redux/modals/modals.actions"; import { DateTimeFormatter } from "../../utils/DateFormatter"; import { alphaSort } from "../../utils/sorters"; import ContractsFindModalContainer from "../contracts-find-modal/contracts-find-modal.container"; -import { setModalContext } from "../../redux/modals/modals.actions"; +import moment from "moment"; import { connect } from "react-redux"; import { createStructuredSelector } from "reselect"; -import moment from "moment"; import { selectBodyshop } from "../../redux/user/user.selectors"; const mapStateToProps = createStructuredSelector({ diff --git a/client/src/components/courtesy-car-form/courtesy-car-form.component.jsx b/client/src/components/courtesy-car-form/courtesy-car-form.component.jsx index e112566cc..aeb76fdb5 100644 --- a/client/src/components/courtesy-car-form/courtesy-car-form.component.jsx +++ b/client/src/components/courtesy-car-form/courtesy-car-form.component.jsx @@ -283,12 +283,6 @@ export default function CourtesyCarCreateFormComponent({ form, saveLoading }) { @@ -330,9 +324,7 @@ export default function CourtesyCarCreateFormComponent({ form, saveLoading }) { - p.insuranceexpires !== c.insuranceexpires - } + shouldUpdate={(p, c) => p.insuranceexpires !== c.insuranceexpires} > {() => { const expires = form.getFieldValue("insuranceexpires"); diff --git a/client/src/components/courtesy-cars-list/courtesy-cars-list.component.jsx b/client/src/components/courtesy-cars-list/courtesy-cars-list.component.jsx index b2e3059f6..ab85f95bc 100644 --- a/client/src/components/courtesy-cars-list/courtesy-cars-list.component.jsx +++ b/client/src/components/courtesy-cars-list/courtesy-cars-list.component.jsx @@ -174,6 +174,7 @@ export default function CourtesyCarsList({ loading, courtesycars, refetch }) { (c.year || "").toLowerCase().includes(searchText.toLowerCase()) || (c.make || "").toLowerCase().includes(searchText.toLowerCase()) || (c.model || "").toLowerCase().includes(searchText.toLowerCase()) || + (c.plate || "").toLowerCase().includes(searchText.toLowerCase()) || (t(c.status) || "").toLowerCase().includes(searchText.toLowerCase()) ) : courtesycars; diff --git a/client/src/components/job-line-location-popup/job-line-location-popup.component.jsx b/client/src/components/job-line-location-popup/job-line-location-popup.component.jsx index 16bb32fed..676ae6f59 100644 --- a/client/src/components/job-line-location-popup/job-line-location-popup.component.jsx +++ b/client/src/components/job-line-location-popup/job-line-location-popup.component.jsx @@ -1,6 +1,6 @@ +import { useMutation } from "@apollo/client"; import { notification, Select } from "antd"; import React, { useEffect, useState } from "react"; -import { useMutation } from "@apollo/client"; import { useTranslation } from "react-i18next"; import { connect } from "react-redux"; import { createStructuredSelector } from "reselect"; @@ -56,8 +56,10 @@ export function JobLineLocationPopup({ bodyshop, jobline, disabled }) {