feature/IO-2776-cdk-fortellis - Fix linting errors preventing build of front end
This commit is contained in:
@@ -36,7 +36,7 @@ export function DmsCustomerSelector({ bodyshop, jobid }) {
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (Fortellis.treatment === "on") {
|
if (Fortellis.treatment === "on") {
|
||||||
const handleFortellisSelectCustomer = (customerList, callback) => {
|
const handleFortellisSelectCustomer = (customerList) => {
|
||||||
setOpen(true);
|
setOpen(true);
|
||||||
setDmsType("cdk");
|
setDmsType("cdk");
|
||||||
setcustomerList(customerList);
|
setcustomerList(customerList);
|
||||||
@@ -46,12 +46,12 @@ export function DmsCustomerSelector({ bodyshop, jobid }) {
|
|||||||
wsssocket.off("fortellis-select-customer", handleFortellisSelectCustomer);
|
wsssocket.off("fortellis-select-customer", handleFortellisSelectCustomer);
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
const handleCdkSelectCustomer = (customerList, callback) => {
|
const handleCdkSelectCustomer = (customerList) => {
|
||||||
setOpen(true);
|
setOpen(true);
|
||||||
setDmsType("cdk");
|
setDmsType("cdk");
|
||||||
setcustomerList(customerList);
|
setcustomerList(customerList);
|
||||||
};
|
};
|
||||||
const handlePbsSelectCustomer = (customerList, callback) => {
|
const handlePbsSelectCustomer = (customerList) => {
|
||||||
setOpen(true);
|
setOpen(true);
|
||||||
setDmsType("pbs");
|
setDmsType("pbs");
|
||||||
setcustomerList(customerList);
|
setcustomerList(customerList);
|
||||||
@@ -128,7 +128,7 @@ export function DmsCustomerSelector({ bodyshop, jobid }) {
|
|||||||
title: t("jobs.fields.dms.address"),
|
title: t("jobs.fields.dms.address"),
|
||||||
|
|
||||||
key: "address",
|
key: "address",
|
||||||
render: (record, value) =>
|
render: (record) =>
|
||||||
`${record.postalAddress?.addressLine1} ${record.postalAddress?.addressLine2 ? `, ${record.postalAddress?.addressLine2}` : ""},
|
`${record.postalAddress?.addressLine1} ${record.postalAddress?.addressLine2 ? `, ${record.postalAddress?.addressLine2}` : ""},
|
||||||
${record.postalAddress?.city} ${record.postalAddress?.state} ${record.postalAddress?.postalCode} ${
|
${record.postalAddress?.city} ${record.postalAddress?.state} ${record.postalAddress?.postalCode} ${
|
||||||
record.postalAddress?.country
|
record.postalAddress?.country
|
||||||
|
|||||||
Reference in New Issue
Block a user