0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 09:52:48 +00:00

add the transfer if statement back in after erroneously removing it

This commit is contained in:
Charlie Humphreys
2022-03-24 13:50:26 -05:00
parent c081234021
commit 562ba42b1b

View File

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