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

@@ -20,27 +20,28 @@ export default function OwnerFindModalContainer({
const ownersList = useQuery(QUERY_SEARCH_OWNER_BY_IDX, {
variables: {
search: owner ? `${owner.ownr_fn || ""} ${owner.ownr_ln || ""}` : null
search: owner ? `${owner.ownr_fn || ""} ${owner.ownr_ln || ""}` : null,
},
skip: !owner,
fetchPolicy: "network-only"
fetchPolicy: "network-only",
});
return (
<Modal
title={t("owners.labels.existing_owners")}
width={"80%"}
{...modalProps}>
{...modalProps}
>
{loading ? <LoadingSpinner /> : null}
{error ? <AlertComponent message={error.message} type='error' /> : null}
{error ? <AlertComponent message={error.message} type="error" /> : null}
{owner ? (
<OwnerFindModalComponent
selectedOwner={selectedOwner}
setSelectedOwner={setSelectedOwner}
ownersListLoading={ownersList.loading}
ownersList={
ownersList.data && ownersList.data.search_owner
? ownersList.data.search_owner
ownersList.data && ownersList.data.search_owners
? ownersList.data.search_owners
: null
}
/>