0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-14 19:22:52 +00:00

add comments, update query params, adjust code based on feedback

This commit is contained in:
Charlie Humphreys
2022-05-14 04:17:39 +00:00
parent ff885dc6c2
commit ac905ddf3f
3 changed files with 65 additions and 46 deletions

View File

@@ -162,7 +162,7 @@ const NewPage = createClass({
brew.pageCount=((brew.renderer=='legacy' ? brew.text.match(/\\page/g) : brew.text.match(/^\\page$/gm)) || []).length + 1;
const res = await request
.post(`/api${this.state.saveGoogle ? '?transferToGoogle=true' : ''}`)
.post(`/api${this.state.saveGoogle ? '?saveToGoogle=true' : ''}`)
.send(brew)
.catch((err)=>{
console.log(err);