Skip to content

Scheduling infrastructure for absolutely everyone.

fix: persist team filter across tab switches (#22892)

Pallav08a57f32c54e
diff --git a/packages/features/eventtypes/components/EventTypeLayout.tsx b/packages/features/eventtypes/components/EventTypeLayout.tsx
index 20d4cb46103..6f0e54aebb9 100644
--- a/packages/features/eventtypes/components/EventTypeLayout.tsx
+++ b/packages/features/eventtypes/components/EventTypeLayout.tsx
@@ -96,10 +96,11 @@ function EventTypeSingleLayout({
const [Shell] = useMemo(() => {
return isPlatform ? [PlatformShell] : [WebShell];
}, [isPlatform]);
+ const teamId = eventType.team?.id;
return (
<Shell
- backPath="/event-types"
+ backPath={teamId ? `/event-types?teamId=${teamId}` : "/event-types"}
title={`${eventType.title} | ${t("event_type")}`}
heading={eventType.title}
CTA={