ENCOA-129: When Creating a Single user Corporate OR Master Corporate it should have the field Department to be configured
This commit is contained in:
@@ -59,7 +59,7 @@ export const getServerSideProps = withIronSessionSsr(async ({req, res}) => {
|
||||
}
|
||||
|
||||
return {
|
||||
props: {user, linkedCorporate: await getUserCorporate(user.id)},
|
||||
props: {user, linkedCorporate: (await getUserCorporate(user.id)) || null},
|
||||
};
|
||||
}, sessionOptions);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user