Show button even when no event types (#2214)
parent
91a6e199a1
commit
a8e137a55c
|
@ -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}
|
||||||
|
|
Loading…
Reference in New Issue