diff --git a/webapp/components/postlist.jsx b/webapp/components/postlist.jsx index 3f95880..cdbb186 100644 --- a/webapp/components/postlist.jsx +++ b/webapp/components/postlist.jsx @@ -11,7 +11,7 @@ module.exports = React.createClass({ return (b.date || 0) - (a.date || 0) }, componentWillReceiveProps (props) { - if (props.api) { + if (props.api && (this.props.board !== props.board || this.props.admin !== props.admin)) { this.init(props.api, props) } }, diff --git a/webapp/pages/postpage.jsx b/webapp/pages/postpage.jsx index 182c852..426e900 100644 --- a/webapp/pages/postpage.jsx +++ b/webapp/pages/postpage.jsx @@ -29,7 +29,7 @@ module.exports = function (boardsAPI) {
{this.getContext()}
- + } else { return