0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-08 20:23:39 +00:00

update based on feedback

This commit is contained in:
Charlie Humphreys
2022-03-24 13:46:23 -05:00
parent b19efcebb9
commit bba0208361
3 changed files with 4 additions and 8 deletions

View File

@@ -210,11 +210,7 @@ const EditPage = createClass({
});
this.savedBrew = res.body;
if(this.state.saveGoogle && transfer) {
history.replaceState(null, null, `/edit/${this.savedBrew.googleId}${this.savedBrew.editId}`);
} else if(transfer) {
history.replaceState(null, null, `/edit/${this.savedBrew.editId}`);
}
history.replaceState(null, null, `/edit/${this.savedBrew.googleId ?? ''}${this.savedBrew.editId}`);
this.setState((prevState)=>({
brew : _.merge({}, prevState.brew, {