Skip to content

Commit 43d05f4

Browse files
fix: disable prefetch on team page event type links to prevent Google rate limits (calcom#27260)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
1 parent 4f2f024 commit 43d05f4

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

apps/web/modules/team/team-view.tsx

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,13 @@ function TeamPage({ team, considerUnpublished, isValidOrgDomain }: PageProps) {
6969
!isEmbed && "bg-default"
7070
)}>
7171
<div className="px-6 py-4 ">
72-
<Link
73-
href={{
74-
pathname: `${isValidOrgDomain ? "" : "/team"}/${team.slug}/${type.slug}`,
75-
query: queryParamsToForward,
76-
}}
77-
onClick={async () => {
72+
<Link
73+
prefetch={false}
74+
href={{
75+
pathname: `${isValidOrgDomain ? "" : "/team"}/${team.slug}/${type.slug}`,
76+
query: queryParamsToForward,
77+
}}
78+
onClick={async () => {
7879
sdkActionManager?.fire("eventTypeSelected", {
7980
eventType: type,
8081
});
@@ -106,7 +107,7 @@ function TeamPage({ team, considerUnpublished, isValidOrgDomain }: PageProps) {
106107
).length;
107108
return (
108109
<li key={i} className="hover:bg-cal-muted w-full rounded-md transition">
109-
<Link href={`/${ch.slug}`} className="flex items-center justify-between">
110+
<Link prefetch={false} href={`/${ch.slug}`} className="flex items-center justify-between">
110111
<div className="flex items-center px-5 py-5">
111112
<div className="ms-3 inline-block truncate">
112113
<span className="text-default text-sm font-bold">{ch.name}</span>

0 commit comments

Comments
 (0)