mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-05 22:20:01 +08:00
fix: handle add message in frontend (#1340)
This commit is contained in:
@ -611,7 +611,7 @@ class UserEditPage extends React.Component {
|
||||
const user = Setting.deepCopy(this.state.user);
|
||||
UserBackend.updateUser(this.state.organizationName, this.state.userName, user)
|
||||
.then((res) => {
|
||||
if (res.msg === "") {
|
||||
if (res.status === "ok") {
|
||||
Setting.showMessage("success", "Successfully saved");
|
||||
this.setState({
|
||||
organizationName: this.state.user.owner,
|
||||
|
Reference in New Issue
Block a user