0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-05-08 07:48:40 +00:00
This commit is contained in:
Trevor Buckner
2020-01-23 09:47:19 -05:00
parent bc81e09686
commit 2efb24d692
2 changed files with 3 additions and 5 deletions
+1 -3
View File
@@ -30,9 +30,7 @@ const BrewCompress = createClass({
},
cleanup(){
this.setState({ pending: true });
this.state.ids.forEach((id) => {
console.log("trying to compress this one:");
console.log(id);
this.state.ids.forEach((id)=>{
request.put(`/admin/compress/${id}`)
.catch((err)=>this.setState({ error: err }))
.finally(()=>this.setState({ pending: false, primed: false }));