diff --git a/client/homebrew/pages/editPage/editPage.jsx b/client/homebrew/pages/editPage/editPage.jsx index c97fa6b..3245678 100644 --- a/client/homebrew/pages/editPage/editPage.jsx +++ b/client/homebrew/pages/editPage/editPage.jsx @@ -62,7 +62,7 @@ const EditPage = createClass({ } }; - this.setState((prevState) => ({ + this.setState((prevState)=>({ htmlErrors : Markdown.validate(prevState.brew.text) })); @@ -128,7 +128,7 @@ const EditPage = createClass({ save : function(){ if(this.debounceSave && this.debounceSave.cancel) this.debounceSave.cancel(); - this.setState((prevState) => ({ + this.setState((prevState)=>({ isSaving : true, errors : null, htmlErrors : Markdown.validate(prevState.brew.text) @@ -166,7 +166,7 @@ const EditPage = createClass({
Looks like there was a problem saving.
Report the issue + href={`https://github.com/stolksdorf/naturalcrit/issues/new?body=${encodeURIComponent(errMsg)}`}> here .
diff --git a/client/homebrew/pages/printPage/printPage.jsx b/client/homebrew/pages/printPage/printPage.jsx index 13510f7..87f9015 100644 --- a/client/homebrew/pages/printPage/printPage.jsx +++ b/client/homebrew/pages/printPage/printPage.jsx @@ -22,8 +22,8 @@ const PrintPage = createClass({ componentDidMount : function() { if(this.props.query.local){ - this.setState((prevState, prevProps) => ({ - brewText: localStorage.getItem(prevProps.query.local) + this.setState((prevState, prevProps)=>({ + brewText : localStorage.getItem(prevProps.query.local) })); }