Skip to content

Commit 08a57f3

Browse files
fix: persist team filter across tab switches (calcom#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 <41051387+kart1ka@users.noreply.github.com>
1 parent b5a26bc commit 08a57f3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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)