diff --git a/apps/web/lib/team/[slug]/getServerSideProps.tsx b/apps/web/lib/team/[slug]/getServerSideProps.tsx index 18d6df4a5b..a094a923b7 100644 --- a/apps/web/lib/team/[slug]/getServerSideProps.tsx +++ b/apps/web/lib/team/[slug]/getServerSideProps.tsx @@ -213,6 +213,9 @@ function getTeamWithoutMetadata>(team: T) { const teamMetadata = teamMetadataSchema.parse(metadata); return { ...rest, - requestedSlug: teamMetadata?.requestedSlug, + // add requestedSlug if available. + ...(typeof teamMetadata?.requestedSlug !== "undefined" + ? { requestedSlug: teamMetadata?.requestedSlug } + : {}), }; }