mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
RolePicker: Only update org role if the value has changed (#51239)
This commit is contained in:
parent
f9becc2d4f
commit
454f65cd88
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user