fix: team event leading to a 404 page due slug conflict (#18055)

This commit is contained in:
Anik Dhabal Babu
2024-12-09 11:36:15 +01:00
committed by GitHub
parent 7a7282a7ab
commit e8eab10d17
@@ -53,6 +53,9 @@ export const getServerSideProps = async (context: GetServerSidePropsContext) =>
...getSlugOrRequestedSlug(teamSlug),
parent: isValidOrgDomain && currentOrgDomain ? getSlugOrRequestedSlug(currentOrgDomain) : null,
},
orderBy: {
slug: { sort: "asc", nulls: "last" },
},
select: {
id: true,
hideBranding: true,