Minor code clean up.

This commit is contained in:
Patrick Fic
2021-05-18 15:54:05 -07:00
parent 45d0cc1f5f
commit e8e0d593b7
6 changed files with 13 additions and 13 deletions

View File

@@ -36,10 +36,8 @@ const JobSearchSelect = (
}
);
const [
callIdSearch,
{ loading: idLoading, error: idError, data: idData },
] = useLazyQuery(SEARCH_JOBS_BY_ID_FOR_AUTOCOMPLETE);
const [callIdSearch, { loading: idLoading, error: idError, data: idData }] =
useLazyQuery(SEARCH_JOBS_BY_ID_FOR_AUTOCOMPLETE);
const executeSearch = (v) => {
callSearch(v);
@@ -63,6 +61,7 @@ const JobSearchSelect = (
],
"id"
);
console.log("restProps", restProps);
return (
<div>
@@ -81,7 +80,7 @@ const JobSearchSelect = (
>
{theOptions
? theOptions.map((o) => (
<Option key={o.id} value={o.id}>
<Option key={o.id} value={o.id} status={o.status}>
{`${clm_no ? `${o.clm_no} | ` : ""}${
o.ro_number || t("general.labels.na")
} | ${o.ownr_ln || ""} ${o.ownr_fn || ""} ${