add filter on organizer
This commit is contained in:
@ -33,6 +33,10 @@ export function randomElement(array: any[]): any | undefined {
|
||||
: undefined;
|
||||
}
|
||||
|
||||
export function unique<T>(array: any[]): any[] {
|
||||
return Array.from(array.reduce((set, item) => set.add(item), new Set()));
|
||||
}
|
||||
|
||||
const BlockFragmentDefinition = graphql(`
|
||||
fragment Blocks on StreamFieldInterface {
|
||||
id
|
||||
|
@ -74,7 +74,9 @@ const EventFragmentDefinition = graphql(`
|
||||
}
|
||||
organizers {
|
||||
... on EventOrganizer {
|
||||
id
|
||||
name
|
||||
slug
|
||||
externalUrl
|
||||
association {
|
||||
... on AssociationPage {
|
||||
@ -104,6 +106,19 @@ export const futureEventsQuery = graphql(`
|
||||
showInFilters
|
||||
}
|
||||
}
|
||||
eventOrganizers: eventOrganizers {
|
||||
... on EventOrganizer {
|
||||
id
|
||||
name
|
||||
slug
|
||||
externalUrl
|
||||
association {
|
||||
... on AssociationPage {
|
||||
url
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
`);
|
||||
|
||||
|
Reference in New Issue
Block a user