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

+3 -4
View File
@@ -8,11 +8,11 @@ const nextConfig = {
async redirects() {
return [
{
source: '/',
destination: 'https://cal.com/ai',
source: "/",
destination: "https://cal.com/ai",
permanent: true,
},
]
];
},
i18n: {
defaultLocale: "en",
@@ -22,4 +22,3 @@ const nextConfig = {
};
module.exports = () => plugins.reduce((acc, next) => next(acc), nextConfig);
+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"