From eceaabb93c53f94432de42947cb0cfb80846ae11 Mon Sep 17 00:00:00 2001 From: Alex Liebowitz Date: Tue, 9 Aug 2016 10:58:28 -0400 Subject: [PATCH] Make search not get stuck on Dewey Decimals message --- js/page/discover.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/js/page/discover.js b/js/page/discover.js index 816c4eab0..eaedbeca7 100644 --- a/js/page/discover.js +++ b/js/page/discover.js @@ -178,8 +178,13 @@ var DiscoverPage = React.createClass({ userTypingTimer: null, componentDidUpdate: function() { - if (this.props.query) + if (this.props.query != this.state.query) { + this.setState({ + searching: true, + query: this.props.query, + }); + lbry.search(this.props.query, this.searchCallback); } }, @@ -197,6 +202,7 @@ var DiscoverPage = React.createClass({ }, searchCallback: function(results) { + console.log('results:', results) console.log('search callback'); console.log(this.state); console.log(this.props);