From 5768a967878103a9b42128ff06dd2940cf1d0f5c Mon Sep 17 00:00:00 2001 From: Maksim Sukharev Date: Fri, 24 Jan 2025 13:35:17 +0100 Subject: [PATCH] fix: do not fail to filter if invitedActorId is not provided Signed-off-by: Maksim Sukharev --- src/components/BreakoutRoomsEditor/SelectableParticipant.vue | 2 +- src/components/CalendarEventsDialog.vue | 2 +- src/components/RightSidebar/Participants/ParticipantsTab.vue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/BreakoutRoomsEditor/SelectableParticipant.vue b/src/components/BreakoutRoomsEditor/SelectableParticipant.vue index 5db7dcd877f..4fef7842dd9 100644 --- a/src/components/BreakoutRoomsEditor/SelectableParticipant.vue +++ b/src/components/BreakoutRoomsEditor/SelectableParticipant.vue @@ -120,7 +120,7 @@ export default { participantStatus() { if (this.actorType === ATTENDEE.ACTOR_TYPE.EMAILS) { - return this.participant.invitedActorId + return this.participant.invitedActorId ?? '' } return this.participant.shareWithDisplayNameUnique ?? getStatusMessage(this.participant) diff --git a/src/components/CalendarEventsDialog.vue b/src/components/CalendarEventsDialog.vue index a15d4410263..b46a71e2fed 100644 --- a/src/components/CalendarEventsDialog.vue +++ b/src/components/CalendarEventsDialog.vue @@ -168,7 +168,7 @@ const participantsInitialised = computed(() => store.getters.participantsInitial const filteredParticipants = computed(() => participants.value.filter((participant: Participant) => { return isMatch(participant.displayName) || (participant.actorType === ATTENDEE.ACTOR_TYPE.USERS && isMatch(participant.actorId)) - || (participant.actorType === ATTENDEE.ACTOR_TYPE.EMAILS && isMatch(participant.invitedActorId)) + || (participant.actorType === ATTENDEE.ACTOR_TYPE.EMAILS && participant.invitedActorId && isMatch(participant.invitedActorId)) })) const selectedParticipants = computed(() => participants.value .filter((participant: Participant) => selectedAttendeeIds.value.includes(participant.attendeeId)) diff --git a/src/components/RightSidebar/Participants/ParticipantsTab.vue b/src/components/RightSidebar/Participants/ParticipantsTab.vue index fb36e489271..6c7f66d18dc 100644 --- a/src/components/RightSidebar/Participants/ParticipantsTab.vue +++ b/src/components/RightSidebar/Participants/ParticipantsTab.vue @@ -177,7 +177,7 @@ export default { return this.participants.filter(participant => { return isMatch(participant.displayName) || (![ATTENDEE.ACTOR_TYPE.GUESTS, ATTENDEE.ACTOR_TYPE.EMAILS].includes(participant.actorType) && isMatch(participant.actorId)) - || (participant.actorType === ATTENDEE.ACTOR_TYPE.EMAILS && isMatch(participant.invitedActorId)) + || (participant.actorType === ATTENDEE.ACTOR_TYPE.EMAILS && participant.invitedActorId && isMatch(participant.invitedActorId)) }) },