Skip to content
This repository has been archived by the owner on Dec 29, 2024. It is now read-only.

Commit

Permalink
fix: case in empty project at dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
alpharomercoma committed Apr 24, 2024
1 parent d30171b commit fddad51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/dashboard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const getServerSideProps = ssrWrapper(async (_, session) => {
.lean();
return {
props: {
projects: serializeJSON(res.projects),
projects: serializeJSON(res?.projects || []),
},
};
});

0 comments on commit fddad51

Please sign in to comment.