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:
parent
fdc6329c2f
commit
ef8f0e6227
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue