diff --git a/src/components/Event/FullAddressAutoComplete.vue b/src/components/Event/FullAddressAutoComplete.vue index a9f687f08..fd2d5af78 100644 --- a/src/components/Event/FullAddressAutoComplete.vue +++ b/src/components/Event/FullAddressAutoComplete.vue @@ -347,7 +347,7 @@ const asyncData = async (query: string): Promise => { const result = (await searchAddressLoad(undefined, queryVars)) || - (await searchAddressRefetch(queryVars))?.data + (await searchAddressRefetch(queryVars))?.data; if (!result) { isFetching.value = false; diff --git a/src/views/Event/EventView.vue b/src/views/Event/EventView.vue index ab32c301e..d87198c40 100755 --- a/src/views/Event/EventView.vue +++ b/src/views/Event/EventView.vue @@ -613,8 +613,8 @@ const organizerDomain = computed((): string | undefined => { }); const nonPassedRelatedEvents = computed((): IEvent[] | undefined => { - let relatedEvents = event.value?.relatedEvents; - + const relatedEvents = event.value?.relatedEvents; + return relatedEvents?.filter((relatedEvent: IEvent) => { const endsOn = relatedEvent.endsOn ? new Date(relatedEvent.endsOn)