Skip to content

Commit 72b77bf

Browse files
committed
fix: return standard hackathon team notFound
1 parent 26a42d2 commit 72b77bf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pages/hackathon/[id]/team/[tid].tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export const getServerSideProps = compose<Record<'id' | 'tid', string>>(
4141
cache(),
4242
errorLogger,
4343
async ({ params }) => {
44-
if (!params?.id || !params?.tid) return { notFound: true, props: {} };
44+
if (!params?.id || !params?.tid) return { notFound: true };
4545

4646
const activity = await new ActivityModel().getOne(params!.id);
4747
const { appId, tableIdMap } = activity.databaseSchema || {};
@@ -53,7 +53,7 @@ export const getServerSideProps = compose<Record<'id' | 'tid', string>>(
5353
!tableIdMap?.Member ||
5454
!tableIdMap?.Product
5555
)
56-
return { notFound: true, props: {} };
56+
return { notFound: true };
5757

5858
const project = await new ProjectModel(appId, tableIdMap.Project).getOne(params!.tid);
5959

0 commit comments

Comments
 (0)