Fixes eventtype listing (#653)

Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
pull/654/head^2
Alex van Andel 2021-09-15 15:23:50 +01:00 committed by GitHub
parent 0d60052c88
commit 478b90a27d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -727,7 +727,7 @@ export async function getServerSideProps(context) {
canAddEvents,
user: userObj,
// don't display event teams without event types,
eventTypes: eventTypes.filter((groupBy) => !groupBy.eventTypes?.length),
eventTypes: eventTypes.filter((groupBy) => !!groupBy.eventTypes?.length),
// so we can show a dropdown when the user has teams
profiles: eventTypes.map((group) => ({
teamId: group.teamId,