0
0
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:
G.Ambatte
2021-06-28 19:43:15 +12:00
parent 0cd4b730d7
commit c18eb948b4

View File

@@ -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}`;
});
}
},