mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-30 21:52:43 +00:00
Correct stringify to parse
This commit is contained in:
@@ -31,7 +31,7 @@ const PrintPage = createClass({
|
||||
componentDidMount : function() {
|
||||
if(this.props.query.local){
|
||||
const localText = localStorage.getItem(prevProps.query.local);
|
||||
const localRenderer = JSON.stringify(localStorage.getItem(METAKEY)).renderer || 'legacy';
|
||||
const localRenderer = JSON.parse(localStorage.getItem(METAKEY)).renderer || 'legacy';
|
||||
this.setState((prevState, prevProps)=>({
|
||||
brewText : localText,
|
||||
brewRenderer : localRenderer
|
||||
|
||||
Reference in New Issue
Block a user