We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26a42d2 commit 72b77bfCopy full SHA for 72b77bf
1 file changed
pages/hackathon/[id]/team/[tid].tsx
@@ -41,7 +41,7 @@ export const getServerSideProps = compose<Record<'id' | 'tid', string>>(
41
cache(),
42
errorLogger,
43
async ({ params }) => {
44
- if (!params?.id || !params?.tid) return { notFound: true, props: {} };
+ if (!params?.id || !params?.tid) return { notFound: true };
45
46
const activity = await new ActivityModel().getOne(params!.id);
47
const { appId, tableIdMap } = activity.databaseSchema || {};
@@ -53,7 +53,7 @@ export const getServerSideProps = compose<Record<'id' | 'tid', string>>(
53
!tableIdMap?.Member ||
54
!tableIdMap?.Product
55
)
56
- return { notFound: true, props: {} };
+ return { notFound: true };
57
58
const project = await new ProjectModel(appId, tableIdMap.Project).getOne(params!.tid);
59
0 commit comments