From 7475056bb443a0da4e88dc5082643ed28564e4d4 Mon Sep 17 00:00:00 2001 From: Luke Barnard Date: Thu, 15 Dec 2016 18:33:13 +0000 Subject: [PATCH] MELS component should update if there are fewEvents, effectively expanding the summary --- src/components/views/elements/MemberEventListSummary.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/views/elements/MemberEventListSummary.js b/src/components/views/elements/MemberEventListSummary.js index 27c50fe97c..bff2ce3d05 100644 --- a/src/components/views/elements/MemberEventListSummary.js +++ b/src/components/views/elements/MemberEventListSummary.js @@ -149,9 +149,11 @@ module.exports = React.createClass({ // - 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 + // - or if there are fewEvents, meaning the child eventTiles are shown as-is return ( nextProps.events.length !== this.props.events.length || - this.state.expanded || nextState.expanded + this.state.expanded || nextState.expanded || + nextProps.events.length < this.props.threshold ); },