diff --git a/js/src/views/Event/EventView.vue b/js/src/views/Event/EventView.vue index b233ef9d0..8beac096a 100755 --- a/js/src/views/Event/EventView.vue +++ b/js/src/views/Event/EventView.vue @@ -169,9 +169,10 @@
import("@/components/Event/Integrations/TwitchIntegration.vue") ); @@ -288,7 +288,6 @@ const IntegrationJitsiMeet = defineAsyncComponent( const IntegrationEtherpad = defineAsyncComponent( () => import("@/components/Event/Integrations/EtherpadIntegration.vue") ); -/* eslint-enable @typescript-eslint/no-unused-vars */ const EventMap = defineAsyncComponent( () => import("@/components/Event/EventMap.vue") ); @@ -492,12 +491,12 @@ onFetchEventError(({ graphQLErrors }) => handleErrors(graphQLErrors as AbsintheGraphQLErrors) ); -const metadataToComponent: Record = { - "mz:live:twitch:url": "IntegrationTwitch", - "mz:live:peertube:url": "IntegrationPeertube", - "mz:live:youtube:url": "IntegrationYoutube", - "mz:visio:jitsi_meet": "IntegrationJitsiMeet", - "mz:notes:etherpad:url": "IntegrationEtherpad", +const metadataToComponent: Record = { + "mz:live:twitch:url": IntegrationTwitch, + "mz:live:peertube:url": IntegrationPeertube, + "mz:live:youtube:url": IntegrationYoutube, + "mz:visio:jitsi_meet": IntegrationJitsiMeet, + "mz:notes:etherpad:url": IntegrationEtherpad, }; const integrations = computed((): Record => { @@ -514,7 +513,7 @@ const integrations = computed((): Record => { if (component !== undefined) { // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore - acc[component] = metadata; + acc[metadata.key] = metadata; } return acc; }, {});