diff --git a/apps/web/pages/event-types/[type].tsx b/apps/web/pages/event-types/[type].tsx index dae70aa507..3c585166eb 100644 --- a/apps/web/pages/event-types/[type].tsx +++ b/apps/web/pages/event-types/[type].tsx @@ -332,7 +332,7 @@ const EventTypePage = (props: inferSSRProps) => { fetchTokens(); - !hashedUrl && setHashedUrl(generateHashedLink(eventType.users[0].id)); + !hashedUrl && setHashedUrl(generateHashedLink(eventType.users[0]?.id ?? team?.id)); // eslint-disable-next-line react-hooks/exhaustive-deps }, []); @@ -2182,6 +2182,7 @@ export const getServerSideProps = async (context: GetServerSidePropsContext) => successRedirectUrl: true, team: { select: { + id: true, slug: true, members: { where: {