Don't trigger lbry.search() on page load

This was happening because the transition of the query from
undefined -> '' was registering as a search being typed
This commit is contained in:
Alex Liebowitz 2016-09-29 03:43:18 -04:00
parent fdc6329c2f
commit ef8f0e6227

View file

@ -262,7 +262,7 @@ var DiscoverPage = React.createClass({
componentDidMount: function() {
document.title = "Discover";
if (this.props.query !== '') {
if (this.props.query) {
// Rendering with a query already typed
this.handleSearchChanged();
}