Filter empty keywords from autocompleters (https://github.com/woocommerce/woocommerce-admin/pull/3257)
This commit is contained in:
parent
81567875c0
commit
225548d7af
|
@ -77,7 +77,7 @@ class Search extends Component {
|
|||
const formattedOption = {
|
||||
key: autocompleter.getOptionIdentifier( option ),
|
||||
label: autocompleter.getOptionLabel( option, query ),
|
||||
keywords: autocompleter.getOptionKeywords( option ),
|
||||
keywords: autocompleter.getOptionKeywords( option ).filter( Boolean ),
|
||||
value: option,
|
||||
};
|
||||
formattedOptions.push( formattedOption );
|
||||
|
|
Loading…
Reference in New Issue