mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-07-10 04:46: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 {
|
protected search (query: string): void {
|
||||||
const { searchable } = this.props;
|
const { searchable } = this.props;
|
||||||
searchable.search({ query }).then(result => {
|
searchable.search({ query: query.trim() }).then(result => {
|
||||||
const { items } = result;
|
const { items } = result;
|
||||||
this.setState({
|
this.setState({
|
||||||
items: this.sort(items)
|
items: this.sort(items)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user