PLT-6518 Fixed user's locale not being loaded with redux actions (#6359)
* Stopped ManageLanguages component from mutating user * Removed obsolete reference to mm_user * PLT-6518 Fixed user's locale not being loaded with redux actions
Этот коммит содержится в:
коммит произвёл
Joram Wilander
родитель
e52ab9737e
Коммит
0c701cc1d0
@@ -33,12 +33,10 @@ export default class ManageLanguage extends React.Component {
|
||||
changeLanguage(e) {
|
||||
e.preventDefault();
|
||||
|
||||
var user = this.props.user;
|
||||
var locale = this.state.locale;
|
||||
|
||||
user.locale = locale;
|
||||
|
||||
this.submitUser(user);
|
||||
this.submitUser({
|
||||
...this.props.user,
|
||||
locale: this.state.locale
|
||||
});
|
||||
}
|
||||
submitUser(user) {
|
||||
updateUser(user, Constants.UserUpdateEvents.LANGUAGE,
|
||||
|
||||
Ссылка в новой задаче
Block a user