IO-928 IO-932 IO-940 Production List Updates

This commit is contained in:
Patrick Fic
2021-04-26 13:32:16 -07:00
parent cffcd4b19b
commit ccc1a37ebb
3 changed files with 16 additions and 4 deletions

View File

@@ -21,7 +21,10 @@ export function JobAltTransportChange({ bodyshop, job }) {
const onClick = async ({ key }) => {
const result = await updateJob({
variables: { jobId: job.id, job: { alt_transport: key } },
variables: {
jobId: job.id,
job: { alt_transport: key === "null" ? null : key },
},
});
if (!!!result.errors) {
@@ -40,6 +43,8 @@ export function JobAltTransportChange({ bodyshop, job }) {
bodyshop.appt_alt_transport.map((alt) => (
<Menu.Item key={alt}>{alt}</Menu.Item>
))}
<Menu.Divider />
<Menu.Item key={"null"}>{t("general.actions.clear")}</Menu.Item>
</Menu>
);
return (