0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-28 02:42:39 +00:00

BrewSearch: Remove stale piece of React state

This commit is contained in:
Rae Che
2018-05-27 14:08:02 +01:00
committed by Trevor Buckner
parent 796df9a1ac
commit d0c473878a

View File

@@ -17,16 +17,11 @@ const BrewSearch = createClass({
return {
searchTerm : '',
brew : null,
searching : false
};
},
search : function(){
this.setState({
searching : true
});
request.get(`/homebrew/api/search?id=${this.state.searchTerm}`)
.query({
admin_key : this.props.admin_key,
@@ -35,8 +30,6 @@ const BrewSearch = createClass({
console.log(err, res, res.body.brews[0]);
this.setState({
brew : res.body.brews[0],
searching : false
});
});
},