Skip to content

Commit

Permalink
Merge pull request #593 from Studio-Yandex-Practicum/develop
Browse files Browse the repository at this point in the history
Release
  • Loading branch information
AntonZelinsky authored Oct 15, 2024
2 parents 46599ca + df96a6c commit 7fbf058
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/projects/[id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,10 @@ const Project = (props: InferGetServerSidePropsType<typeof getServerSideProps>)

export const getServerSideProps = async ({ params }: GetServerSidePropsContext<Record<'id', string>>) => {
const { id: projectId } = params!;
const project = await getProject(projectId);

try {
const project = await getProject(projectId);

return {
props: project,
};
Expand Down

0 comments on commit 7fbf058

Please sign in to comment.