We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44b7a77 commit 34d61eaCopy full SHA for 34d61ea
app/webpacker/components/SearchWidget/WcaSearch.jsx
@@ -74,7 +74,8 @@ export function IdWcaSearch({
74
}),
75
}, WCA_SEARCH_QUERY_CLIENT);
76
77
- const valueOptions = multiple ? fetchedOptions : fetchedOptions[0];
+ const filteredOptions = fetchedOptions.filter(Boolean);
78
+ const valueOptions = multiple ? filteredOptions : filteredOptions[0];
79
80
const onChangeIdOnly = useCallback((evt, data) => {
81
const { value: apiValues } = data;
0 commit comments