Lint all the things

This commit is contained in:
Dave
2025-08-19 16:23:29 -04:00
parent f6d6b548be
commit 33fb60ca1a
640 changed files with 2129 additions and 3927 deletions

View File

@@ -1,6 +1,5 @@
import { Button, Dropdown } from "antd";
import _ from "lodash";
import React from "react";
import { useTranslation } from "react-i18next";
import { connect } from "react-redux";
import { createStructuredSelector } from "reselect";
@@ -21,7 +20,6 @@ export function JobsCloseAutoAllocate({ bodyshop, joblines, form, disabled }) {
const ret = _.cloneDeep(jl);
if (jl.part_type) {
ret.profitcenter_part = defaults.profits[jl.part_type.toUpperCase()];
} else {
}
if (jl.mod_lbr_ty) {
ret.profitcenter_labor = defaults.profits[jl.mod_lbr_ty.toUpperCase()];
@@ -32,7 +30,7 @@ export function JobsCloseAutoAllocate({ bodyshop, joblines, form, disabled }) {
if (
InstanceRenderManager({
imex: !jl.part_type && !jl.mod_lbr_ty,
rome: !ret.profitcenter_part,
rome: !ret.profitcenter_part
})
) {
const lineDesc = jl.line_desc ? jl.line_desc.toLowerCase() : "";
@@ -60,7 +58,7 @@ export function JobsCloseAutoAllocate({ bodyshop, joblines, form, disabled }) {
handleAllocate(defaults);
};
const handleMenuClick = ({ item, key, keyPath, domEvent }) => {
const handleMenuClick = ({ key }) => {
logImEXEvent("jobs_close_allocate_auto_dms");
form.setFieldsValue({ dms_allocation: key });
handleAllocate(bodyshop.md_responsibility_centers.dms_defaults.find((x) => x.name === key));