From a8e3047aa21f1156f5f1d99de0130bad778e3327 Mon Sep 17 00:00:00 2001 From: Daniil Palagin Date: Fri, 6 Dec 2024 13:51:46 +0100 Subject: [PATCH] [#202] Fix RoleGroup select --- src/components/user/User.jsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/user/User.jsx b/src/components/user/User.jsx index 383272ff..f0f02441 100644 --- a/src/components/user/User.jsx +++ b/src/components/user/User.jsx @@ -40,7 +40,6 @@ class User extends React.Component { this.i18n = this.props.i18n; this.formatMessage = this.props.formatMessage; this.state = { savedWithEmail: false }; - // this._onRoleSelected = this._onRoleSelected.bind(this); } _onChange = (e) => { @@ -304,7 +303,7 @@ class User extends React.Component { labelWidth={3} inputWidth={8} onChange={this._onRoleGroupSelected} - value={user.roleGroup ? user.roleGroup : ""} + value={this.props.user.roleGroup ? this.props.user.roleGroup.uri : ""} > {this._generateGroupOptions()}