mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-26 11:42:39 +00:00
Accidentally was overzealous with replacing brew with saveBrew.
This commit is contained in:
@@ -158,7 +158,7 @@ const NewPage = createClass({
|
||||
const brew = res.body;
|
||||
localStorage.removeItem(BREWKEY);
|
||||
localStorage.removeItem(STYLEKEY);
|
||||
window.location = `/edit/${saveBrew.googleId}${saveBrew.editId}`;
|
||||
window.location = `/edit/${brew.googleId}${brew.editId}`;
|
||||
} else {
|
||||
request.post('/api')
|
||||
.send(saveBrew)
|
||||
@@ -173,7 +173,7 @@ const NewPage = createClass({
|
||||
const brew = res.body;
|
||||
localStorage.removeItem(BREWKEY);
|
||||
localStorage.removeItem(STYLEKEY);
|
||||
window.location = `/edit/${saveBrew.editId}`;
|
||||
window.location = `/edit/${brew.editId}`;
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user