From ed65d0c92225feb1ea68e850570cec44df0ef846 Mon Sep 17 00:00:00 2001 From: "G.Ambatte" Date: Sun, 9 Oct 2022 11:55:05 +1300 Subject: [PATCH] Send entire brew to HomePage save function --- client/homebrew/pages/homePage/homePage.jsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/client/homebrew/pages/homePage/homePage.jsx b/client/homebrew/pages/homePage/homePage.jsx index c70894093..f634a9387 100644 --- a/client/homebrew/pages/homePage/homePage.jsx +++ b/client/homebrew/pages/homePage/homePage.jsx @@ -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;