mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-22 21:06:58 +00:00
Send entire brew to HomePage save function
This commit is contained in:
1 parent
a3c7e2f807
commit
ed65d0c922
1 file changed
+1
-3
@@ -38,9 +38,7 @@ const HomePage = createClass({
|
||||
},
|
||||
handleSave : function(){
|
||||
request.post('/api')
|
||||
.send({
|
||||
text : this.state.brew.text
|
||||
})
|
||||
.send(this.state.brew)
|
||||
.end((err, res)=>{
|
||||
if(err) return;
|
||||
const brew = res.body;
|
||||
|
||||
Reference in new issue
Block a user