Ignore whitespaces when searhing for libs, cores.

Signed-off-by: Akos Kitta <kittaakos@typefox.io>
This commit is contained in:
Akos Kitta 2019-08-12 11:39:02 +02:00
parent b6306c330f
commit c5796677f8

View File

@ -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)