diff --git a/js/src/graphql/event.ts b/js/src/graphql/event.ts index 87e54ecb7..3e9aaae69 100644 --- a/js/src/graphql/event.ts +++ b/js/src/graphql/event.ts @@ -482,6 +482,9 @@ export const EXPORT_EVENT_PARTICIPATIONS = gql` $format: ExportFormatEnum $roles: [ParticipantRoleEnum] ) { - exportEventParticipants(eventId: $eventId, format: $format, roles: $roles) + exportEventParticipants(eventId: $eventId, format: $format, roles: $roles) { + path + format + } } `; diff --git a/js/src/views/Event/ParticipantsView.vue b/js/src/views/Event/ParticipantsView.vue index 20bc39788..c645075fb 100644 --- a/js/src/views/Event/ParticipantsView.vue +++ b/js/src/views/Event/ParticipantsView.vue @@ -55,22 +55,16 @@ :key="format" aria-role="listitem" @click=" - exportParticipants( - { - eventId: event?.id, - format, - }, - { context: { type: format } } - ) + exportParticipants({ + eventId: event.id ?? '', + format, + }) " @keyup.enter=" - exportParticipants( - { - eventId: event?.id, - format, - }, - { context: { type: format } } - ) + exportParticipants({ + eventId: event.id ?? '', + format, + }) " >