Add team Id to hash url (#2803)
parent
5a124cec72
commit
821105dccb
|
@ -369,7 +369,7 @@ const EventTypePage = (props: inferSSRProps<typeof getServerSideProps>) => {
|
||||||
|
|
||||||
fetchTokens();
|
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
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
|
@ -2184,6 +2184,7 @@ export const getServerSideProps = async (context: GetServerSidePropsContext) =>
|
||||||
successRedirectUrl: true,
|
successRedirectUrl: true,
|
||||||
team: {
|
team: {
|
||||||
select: {
|
select: {
|
||||||
|
id: true,
|
||||||
slug: true,
|
slug: true,
|
||||||
members: {
|
members: {
|
||||||
where: {
|
where: {
|
||||||
|
|
Loading…
Reference in New Issue