0
0
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:
Sean Robertson
2021-10-05 10:40:38 +13:00
parent 41c1b04f0e
commit 213a469dd0

View File

@@ -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