Show button even when no event types (#2214)

This commit is contained in:
Alex van Andel
2022-03-18 21:46:04 +00:00
committed by GitHub
parent 91a6e199a1
commit a8e137a55c

View File

@@ -501,8 +501,7 @@ const EventTypesPage = () => {
heading={t("event_types_page_title")}
subtitle={t("event_types_page_subtitle")}
CTA={
query.data &&
query.data.eventTypeGroups.length !== 0 && (
query.data && (
<CreateEventTypeButton
canAddEvents={query.data.viewer.canAddEvents}
options={query.data.profiles}