Skip to content

Commit 9dedbfc

Browse files
committed
Project Profile: Fix crash when user not logged in
1 parent 1191b4d commit 9dedbfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/components/common/projects/InviteProjectToGroupButton.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class InviteProjectToGroupButton extends React.PureComponent<Props, State> {
3333
const userContext: UserContext = CurrentUser.userContext();
3434
this.state = {
3535
projectGroups: props.project.project_groups,
36-
ownedGroups: userContext.owned_groups,
36+
ownedGroups: CurrentUser.isLoggedIn() && userContext.owned_groups,
3737
showModal: false,
3838
};
3939
this.handleShow = this.handleShow.bind(this);

0 commit comments

Comments
 (0)