diff --git a/client/homebrew/pages/printPage/printPage.jsx b/client/homebrew/pages/printPage/printPage.jsx index 8facee397..13510f7a9 100644 --- a/client/homebrew/pages/printPage/printPage.jsx +++ b/client/homebrew/pages/printPage/printPage.jsx @@ -22,7 +22,9 @@ const PrintPage = createClass({ componentDidMount : function() { if(this.props.query.local){ - this.setState({ brewText: localStorage.getItem(this.props.query.local) }); + this.setState((prevState, prevProps) => ({ + brewText: localStorage.getItem(prevProps.query.local) + })); } if(this.props.query.dialog) window.print();