Show button even when no event types (#2214)

pull/2213/head
Alex van Andel 2022-03-18 21:46:04 +00:00 committed by GitHub
parent 91a6e199a1
commit a8e137a55c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

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