mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-07-10 21:06:33 +00:00
Ignore whitespaces when searhing for libs, cores.
Signed-off-by: Akos Kitta <kittaakos@typefox.io>
This commit is contained in:
parent
b6306c330f
commit
c5796677f8
@ -60,7 +60,7 @@ export class FilterableListContainer<T> extends React.Component<FilterableListCo
|
||||
|
||||
protected search (query: string): void {
|
||||
const { searchable } = this.props;
|
||||
searchable.search({ query }).then(result => {
|
||||
searchable.search({ query: query.trim() }).then(result => {
|
||||
const { items } = result;
|
||||
this.setState({
|
||||
items: this.sort(items)
|
||||
|
Loading…
x
Reference in New Issue
Block a user