mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-04 10:22:38 +00:00
Merge branch 'master' into addSortTypeAndDirToURL-#2315
This commit is contained in:
@@ -72,7 +72,7 @@ const NewPage = createClass({
|
|||||||
componentDidMount : function() {
|
componentDidMount : function() {
|
||||||
document.addEventListener('keydown', this.handleControlKeys);
|
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
|
if(typeof window !== 'undefined') { //Load from localStorage if in client browser
|
||||||
const brewStorage = localStorage.getItem(BREWKEY);
|
const brewStorage = localStorage.getItem(BREWKEY);
|
||||||
|
|||||||
Reference in New Issue
Block a user