Skip to content

Commit

Permalink
fix: ensure proper schema type on server props getter
Browse files Browse the repository at this point in the history
  • Loading branch information
ygrishajev committed Dec 3, 2024
1 parent dd11772 commit 80fdf36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/deploy-web/src/pages/templates/[templateId]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const contextSchema = z.object({
})
});

export const getServerSideProps = getValidatedServerSideProps<TemplateDetailProps>(contextSchema, async ({ params }) => {
export const getServerSideProps = getValidatedServerSideProps<TemplateDetailProps, typeof contextSchema>(contextSchema, async ({ params }) => {
const template = await services.template.findById(params.templateId);

if (!template) {
Expand Down

0 comments on commit 80fdf36

Please sign in to comment.