diff --git a/src/components/views/elements/EventListSummary.tsx b/src/components/views/elements/EventListSummary.tsx index 157eb26a2d6..79d89aed0d0 100644 --- a/src/components/views/elements/EventListSummary.tsx +++ b/src/components/views/elements/EventListSummary.tsx @@ -193,7 +193,7 @@ export default class EventListSummary extends React.Component { // - or if the summary is about to toggle to become collapsed // - or if there are fewEvents, meaning the child eventTiles are shown as-is // - or if the summary members have changed - // - or if the userEvents have changed + // - or if the one of IUserEvents within userEvents have changed return ( nextProps.events.length !== this.props.events.length || nextProps.events.length < this.props.threshold || @@ -205,8 +205,7 @@ export default class EventListSummary extends React.Component { nextState.userEvents[userId].some((event, i) => objectHasDiff(event, this.state.userEvents[userId]?.[i] ?? {}), ), - ) || - true + ) ); } diff --git a/test/test-utils/test-utils.ts b/test/test-utils/test-utils.ts index 20479e045ad..1c78ec024c3 100644 --- a/test/test-utils/test-utils.ts +++ b/test/test-utils/test-utils.ts @@ -470,8 +470,7 @@ export function mkMembership( } const e = mkEvent(event); if (opts.target) { - // @ts-ignore - private field access - e._target = opts.target; + e.target = opts.target; } return e; }