diff --git a/src/components/views/elements/MemberEventListSummary.js b/src/components/views/elements/MemberEventListSummary.js index 7811044fda..27c50fe97c 100644 --- a/src/components/views/elements/MemberEventListSummary.js +++ b/src/components/views/elements/MemberEventListSummary.js @@ -145,9 +145,13 @@ module.exports = React.createClass({ }, shouldComponentUpdate: function(nextProps, nextState) { + // Update if + // - The number of summarised events has changed + // - or if the summary is currently expanded + // - or if the summary is about to toggle to become collapsed return ( nextProps.events.length !== this.props.events.length || - nextState.expanded !== this.state.expanded + this.state.expanded || nextState.expanded ); },