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

Co-authored-by: Leo Giovanetti <hello@leog.me>
fix/reduce-team-list-payload
Udit Takkar 2023-07-25 22:37:09 +05:30 committed by GitHub
parent 6b9d2331fc
commit db80afce40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

View File

@ -209,10 +209,8 @@ function EventTypeSingleLayout({
}`, }`,
}); });
} }
if (isManagedEventType || isChildrenManagedEventType) { const showWebhooks = !(isManagedEventType || isChildrenManagedEventType);
// Removing apps and workflows for manageg event types by admins v1 if (showWebhooks) {
navigation.splice(0, 1);
} else {
navigation.push({ navigation.push({
name: "webhooks", name: "webhooks",
href: `/event-types/${eventType.id}?tabName=webhooks`, href: `/event-types/${eventType.id}?tabName=webhooks`,