render load more even if messages not there

This handles #1546 by still checking about whether to display the loadMore button even if messages are not present (i.e. if a subfilter has no messages present).
This commit is contained in:
Matthew Taylor 2017-09-19 10:30:14 -04:00
parent 4fa3c0f761
commit 9b3b1a2623

View file

@ -196,9 +196,9 @@ var SocialMessagesList = React.createClass({
</div>,
<ul className="messages-social-list" key="messages-social-list">
{this.renderSocialMessages(this.props.messages, (this.props.numNewMessages - 1))}
</ul>,
this.renderLoadMore(this.props.loadMore)
</ul>
] : []}
{this.renderLoadMore(this.props.loadMore)}
</section>
);
}