Don't try to search with an empty query
Less jQuery; more React