Fixed manual job creation validation errors BOD-252

This commit is contained in:
Patrick Fic
2020-08-17 09:11:17 -07:00
parent 873e81556d
commit 85ee5bac04
7 changed files with 36 additions and 39 deletions

View File

@@ -12,11 +12,11 @@ export default function JobsCreateOwnerContainer() {
skip: !state.owner.search,
});
if (error) return <AlertComponent message={error.message} type='error' />;
if (error) return <AlertComponent message={error.message} type="error" />;
return (
<JobsCreateOwnerInfoComponent
loading={loading}
owners={data ? data.search_owner : null}
owners={data ? data.search_owners : null}
/>
);
}

View File

@@ -125,16 +125,11 @@ export default function JobsCreateOwnerInfoNewComponent() {
},
]}
name={["owner", "data", "ownr_ea"]}
shouldUpdate
>
{() => {
return (
<FormItemEmail
//email={form.getFieldValue("ownr_ea")}
disabled={!state.owner.new}
/>
);
}}
<FormItemEmail
//email={form.getFieldValue("ownr_ea")}
disabled={!state.owner.new}
/>
</Form.Item>
<Form.Item
label={t("owners.fields.ownr_ph1")}