fix: show event type setup tab in managed event types [CAL-2225] (#10367)

Co-authored-by: Leo Giovanetti <[email protected]>
This commit is contained in:
Udit TakkarandLeo Giovanetti authored and GitHub committed 2023-07-25 19:07:09 +02:00
1 parent 6b9d2331fc
commit db80afce40
1 file changed
+2 -4
@@ -209,10 +209,8 @@ function EventTypeSingleLayout({
}`,
});
}
if (isManagedEventType || isChildrenManagedEventType) {
// Removing apps and workflows for manageg event types by admins v1
navigation.splice(0, 1);
} else {
const showWebhooks = !(isManagedEventType || isChildrenManagedEventType);
if (showWebhooks) {
navigation.push({
name: "webhooks",
href: `/event-types/${eventType.id}?tabName=webhooks`,