Skip to content

Commit

Permalink
Iterate
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Telatynski <[email protected]>
  • Loading branch information
t3chguy committed Jan 9, 2025
1 parent 3051a95 commit e8910d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 2 additions & 3 deletions src/components/views/elements/EventListSummary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ export default class EventListSummary extends React.Component<Props, State> {
// - 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 ||
Expand All @@ -205,8 +205,7 @@ export default class EventListSummary extends React.Component<Props, State> {
nextState.userEvents[userId].some((event, i) =>
objectHasDiff(event, this.state.userEvents[userId]?.[i] ?? {}),
),
) ||
true
)
);
}

Expand Down
3 changes: 1 addition & 2 deletions test/test-utils/test-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit e8910d9

Please sign in to comment.