Skip to content

Commit

Permalink
fix: do not fail to filter if invitedActorId is not provided
Browse files Browse the repository at this point in the history
Signed-off-by: Maksim Sukharev <[email protected]>
  • Loading branch information
Antreesy committed Jan 24, 2025
1 parent 0beee45 commit 5768a96
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/components/CalendarEventsDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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))
})
},

Expand Down

0 comments on commit 5768a96

Please sign in to comment.