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]>
This commit is contained in:
1 parent
b5a26bc227
commit
08a57f32c5
1 file changed
+2
-1
@@ -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={
|
||||
|
||||
Reference in new issue
Block a user