Skip to content

Conversation

@shakti97
Copy link
Contributor

@shakti97 shakti97 commented Apr 6, 2020

I have verified that this pull request:

  • has no linting errors (npm run lint)
  • is from a uniquely-named feature branch and has been rebased on top of the latest master. (If I was asked to make more changes, I have made sure to rebase onto master then too)
  • is descriptively named and links to an issue number, i.e. Fixes #123

Fixes #1364

searchChange = (value) => {
searchChange = () => {
if (this.state.searchValue.trim().length === 0) return;
this.props.setSearchTerm(this.state.searchValue);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't you be using this.state.searchValue.trim() as the input value here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, will do the recommended changes

@totalcloud-tc
Copy link

@catarak Added the recommended changes , can you please review and suggested changes :)

@catarak
Copy link
Member

catarak commented Apr 14, 2020

thank you!

@catarak catarak merged commit 5b63410 into processing:master Apr 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Trim query before search

3 participants