Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(roles): check for existence of org roles from team #46197

Merged
merged 1 commit into from Mar 22, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -80,7 +80,7 @@ const TeamRoleSelect = (props: {
// Determine the team-role, including if the current team has an org role
// and if adding the user to the current team changes their minimum team-role
const possibleOrgRoles = [member.orgRole];
if (member.orgRolesFromTeams) {
if (member.orgRolesFromTeams && member.orgRolesFromTeams.length > 0) {
possibleOrgRoles.push(member.orgRolesFromTeams[0].role.id);
}
if (team.orgRole) {
Expand Down