Skip to content

Commit

Permalink
Simplify try/catch block
Browse files Browse the repository at this point in the history
  • Loading branch information
vhande committed Nov 22, 2024
1 parent d395343 commit a5755db
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions src/pages/organizers/[organizerId]/preview/index.page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -245,22 +245,16 @@ export const getServerSideProps = getApplicationServerSideProps(
organizerId: query.organizerId,
}),
]);

return {
props: {
dehydratedState: dehydrate(queryClient),
cookies,
},
};
} catch (error) {
console.error(error);
return {
props: {
dehydratedState: dehydrate(queryClient),
cookies,
},
};
}

return {
props: {
dehydratedState: dehydrate(queryClient),
cookies,
},
};
},
);

Expand Down

0 comments on commit a5755db

Please sign in to comment.