RolePicker: Only update org role if the value has changed (#51239)
This commit is contained in:
@@ -106,7 +106,7 @@ export const RolePicker = ({
|
||||
};
|
||||
|
||||
const onUpdate = (newRoles: Role[], newBuiltInRole?: OrgRole) => {
|
||||
if (onBuiltinRoleChange && newBuiltInRole) {
|
||||
if (onBuiltinRoleChange && newBuiltInRole && newBuiltInRole !== builtInRole) {
|
||||
onBuiltinRoleChange(newBuiltInRole);
|
||||
}
|
||||
onRolesChange(newRoles);
|
||||
|
||||
Reference in New Issue
Block a user