mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-07 07:42:39 +00:00
Fixed titles saving
This commit is contained in:
@@ -120,7 +120,10 @@ var EditPage = React.createClass({
|
||||
|
||||
request
|
||||
.put('/homebrew/api/update/' + this.props.brew.editId)
|
||||
.send({text : this.state.text})
|
||||
.send({
|
||||
text : this.state.text,
|
||||
title : this.state.title
|
||||
})
|
||||
.end((err, res) => {
|
||||
console.log('done', res.body);
|
||||
this.savedBrew = res.body;
|
||||
|
||||
@@ -18,7 +18,7 @@ const KEY = 'naturalCrit-homebrew-new';
|
||||
var NewPage = React.createClass({
|
||||
getInitialState: function() {
|
||||
return {
|
||||
title : 'My Awesome Brew v99.99',
|
||||
title : 'My Awesome Brew v99',
|
||||
text: '',
|
||||
isSaving : false
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user