mirror of
https://github.com/sp-tarkov/db-website.git
synced 2025-02-08 04:30:45 -05:00
Removed debug logs
This commit is contained in:
parent
79fda074fb
commit
ba1f2c35c8
@ -46,16 +46,12 @@ export const SearchArea: React.FC = () => {
|
|||||||
const handleNameInput = useCallback(async (input: string) => {
|
const handleNameInput = useCallback(async (input: string) => {
|
||||||
const searchResults = await searchItem(input, preferedLocale);
|
const searchResults = await searchItem(input, preferedLocale);
|
||||||
|
|
||||||
console.log(searchResults);
|
|
||||||
|
|
||||||
const options = searchResults.map((res): ItemOption => ({
|
const options = searchResults.map((res): ItemOption => ({
|
||||||
id: res.item._id,
|
id: res.item._id,
|
||||||
name: res.locale.Name ?? res.item._name,
|
name: res.locale.Name ?? res.item._name,
|
||||||
shortName: JSON.stringify(res.locale.ShortName)
|
shortName: JSON.stringify(res.locale.ShortName)
|
||||||
}));
|
}));
|
||||||
|
|
||||||
console.log(options);
|
|
||||||
|
|
||||||
setSelectOptions(options);
|
setSelectOptions(options);
|
||||||
}, [preferedLocale]);
|
}, [preferedLocale]);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user