0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 20:42:43 +00:00

Fix /new page "default" values not being read

This commit is contained in:
Trevor Buckner
2022-09-01 11:05:47 -04:00
committed by GitHub
parent 98e2d57691
commit 407d3565cd

View File

@@ -72,7 +72,7 @@ const NewPage = createClass({
componentDidMount : function() {
document.addEventListener('keydown', this.handleControlKeys);
const brew = this.props.brew;
const brew = this.state.brew;
if(typeof window !== 'undefined') { //Load from localStorage if in client browser
const brewStorage = localStorage.getItem(BREWKEY);