mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-24 01:16:58 +00:00
Correct stringify to parse
This commit is contained in:
1 parent
41c1b04f0e
commit
213a469dd0
1 file changed
+1
-1
@@ -31,7 +31,7 @@ const PrintPage = createClass({
|
|||||||
componentDidMount : function() {
|
componentDidMount : function() {
|
||||||
if(this.props.query.local){
|
if(this.props.query.local){
|
||||||
const localText = localStorage.getItem(prevProps.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)=>({
|
this.setState((prevState, prevProps)=>({
|
||||||
brewText : localText,
|
brewText : localText,
|
||||||
brewRenderer : localRenderer
|
brewRenderer : localRenderer
|
||||||
|
|||||||
Reference in new issue
Block a user