Skip to content

Commit 08a57f3

Browse files
fix: persist team filter across tab switches (#22892)
* fix/persist team filter across tab switches * fix failing ts errors * tackled failing ts checks * fix prop type consistency * removed unecessary props * tackled in one file --------- Co-authored-by: Kartik Saini <[email protected]>
1 parent b5a26bc commit 08a57f3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/features/eventtypes/components/EventTypeLayout.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,11 @@ function EventTypeSingleLayout({
9696
const [Shell] = useMemo(() => {
9797
return isPlatform ? [PlatformShell] : [WebShell];
9898
}, [isPlatform]);
99+
const teamId = eventType.team?.id;
99100

100101
return (
101102
<Shell
102-
backPath="/event-types"
103+
backPath={teamId ? `/event-types?teamId=${teamId}` : "/event-types"}
103104
title={`${eventType.title} | ${t("event_type")}`}
104105
heading={eventType.title}
105106
CTA={

0 commit comments

Comments
 (0)