@@ -62,13 +62,15 @@ export function JobsCloseAutoAllocate({ bodyshop, joblines, form, disabled }) {
|
||||
);
|
||||
};
|
||||
|
||||
const menu = {
|
||||
const menu =bodyshop.cdk_dealerid || bodyshop.pbs_serialnumber ? {
|
||||
items: bodyshop.md_responsibility_centers.dms_defaults.map((mapping) => ({
|
||||
key: mapping.name,
|
||||
label: mapping.name,
|
||||
disabled: disabled,
|
||||
})),
|
||||
onClick: handleMenuClick,
|
||||
} : {
|
||||
items: []
|
||||
}
|
||||
|
||||
return bodyshop.cdk_dealerid || bodyshop.pbs_serialnumber ? (
|
||||
|
||||
Reference in New Issue
Block a user