mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Fix error not appearing when updating to existing username (#6255)
This commit is contained in:
committed by
Christopher Speller
parent
1b82d98cdb
commit
514f038f44
@@ -532,7 +532,7 @@ export function updateUser(user, type, success, error) {
|
||||
if (data && success) {
|
||||
success(data);
|
||||
} else if (data == null && error) {
|
||||
const serverError = getState().requests.users.updateUser.error;
|
||||
const serverError = getState().requests.users.updateMe.error;
|
||||
error({id: serverError.server_error_id, ...serverError});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user