Skip to content

Commit db80afc

Browse files
Udit-takkarleog
andauthored
fix: show event type setup tab in managed event types [CAL-2225] (#10367)
Co-authored-by: Leo Giovanetti <hello@leog.me>
1 parent 6b9d233 commit db80afc

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

apps/web/components/eventtype/EventTypeSingleLayout.tsx

+2-4
Original file line numberDiff line numberDiff line change
@@ -209,10 +209,8 @@ function EventTypeSingleLayout({
209209
}`,
210210
});
211211
}
212-
if (isManagedEventType || isChildrenManagedEventType) {
213-
// Removing apps and workflows for manageg event types by admins v1
214-
navigation.splice(0, 1);
215-
} else {
212+
const showWebhooks = !(isManagedEventType || isChildrenManagedEventType);
213+
if (showWebhooks) {
216214
navigation.push({
217215
name: "webhooks",
218216
href: `/event-types/${eventType.id}?tabName=webhooks`,

0 commit comments

Comments
 (0)