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:
@@ -54,7 +54,7 @@ export const getServerSideProps = withIronSessionSsr(async ({req, res}) => {
|
||||
};
|
||||
}
|
||||
|
||||
const linkedCorporate = await getUserCorporate(user.id);
|
||||
const linkedCorporate = (await getUserCorporate(user.id)) || null;
|
||||
|
||||
return {
|
||||
props: {user, envVariables, linkedCorporate},
|
||||
|
||||
Reference in New Issue
Block a user