fix(ui): auto complete mapping
This commit is contained in:
parent
b2068ee9d9
commit
d275ab5344
1 changed files with 1 additions and 1 deletions
|
|
@ -200,7 +200,7 @@ const FilterAutoComplete: React.FC<Props> = ({
|
|||
// const response = await new APIClient()[method.toLowerCase()](endpoint, { ..._params, q: inputValue });
|
||||
const data = await searchService.fetchAutoCompleteValues({ ..._params, q: inputValue })
|
||||
// const data = await response.json();
|
||||
const _options = data.data.map((i: any) => ({ value: i.value, label: i.value })) || [];
|
||||
const _options = data.map((i: any) => ({ value: i.value, label: i.value })) || [];
|
||||
setOptions(_options);
|
||||
callback(_options);
|
||||
} catch (e) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue