Workspace member can be null (#12597)
Following https://github.com/twentyhq/twenty/pull/12110 Fixes https://github.com/twentyhq/twenty/issues/12594
This commit is contained in:
@ -201,7 +201,7 @@ export class UserResolver {
|
|||||||
);
|
);
|
||||||
|
|
||||||
if (!isDefined(workspaceMemberEntity)) {
|
if (!isDefined(workspaceMemberEntity)) {
|
||||||
throw new Error('Workspace member not found');
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
const workspaceId = workspace.id;
|
const workspaceId = workspace.id;
|
||||||
|
|||||||
Reference in New Issue
Block a user