perf: Removed unused queries for user event types (#10568)

* perf: Removed unused queries for user event types

* Added empty children array

* Refactor to clean up

* Fixing type issue

* Removed extra call to get raw event types

* Temporarily putting children back

* Removing include from children

* Added check for children

* Put children back for testing

---------

Co-authored-by: Alan <[email protected]>
This commit is contained in:
Keith WilliamsandAlan authored and GitHub committed 2023-09-05 11:35:02 -07:00
1 parent 3f0380617a
commit b4b90f2d27
4 files changed
+24 -17

No files matched your search

+1 -1
View File
@@ -402,7 +402,7 @@ export const EventTypeList = ({ group, groupIndex, readOnly, types }: EventTypeL
)}
/>
)}
{isManagedEventType && (
{isManagedEventType && type.children && (
<AvatarGroup
className="relative right-3 top-1"
size="sm"