Minor code clean up.
This commit is contained in:
@@ -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 || ""} ${
|
||||
|
||||
Reference in New Issue
Block a user