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

Co-authored-by: Leo Giovanetti <hello@leog.me>
This commit is contained in:
Udit Takkar
2023-07-25 19:07:09 +02:00
committed by GitHub
co-authored by Leo Giovanetti
parent 6b9d2331fc
commit db80afce40
@@ -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`,