Skip to content

Commit 704c8e1

Browse files
committed
filter out broken speakers objs
1 parent fcafe57 commit 704c8e1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

frontend/src/components/blocks/dynamic-content-display-section/speakers-content.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ export const SpeakersContent = () => {
2525
});
2626

2727
const submissionsBySpeaker = Object.groupBy(
28-
submissions.toSorted((a, b) =>
29-
a.speaker.fullName.localeCompare(b.speaker.fullName),
30-
),
28+
submissions
29+
.filter((submission) => submission.speaker?.participant?.id)
30+
.toSorted((a, b) => a.speaker.fullName.localeCompare(b.speaker.fullName)),
3131
(submission) => submission.speaker.participant.id,
3232
);
3333

0 commit comments

Comments
 (0)