From 478b90a27df2a1c92704ff9d08b1c7a367f81597 Mon Sep 17 00:00:00 2001 From: Alex van Andel Date: Wed, 15 Sep 2021 15:23:50 +0100 Subject: [PATCH] Fixes eventtype listing (#653) Co-authored-by: Bailey Pumfleet --- pages/event-types/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/event-types/index.tsx b/pages/event-types/index.tsx index 44cc4018fb..9618fbab87 100644 --- a/pages/event-types/index.tsx +++ b/pages/event-types/index.tsx @@ -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,