mirror of
https://github.com/casdoor/casdoor.git
synced 2025-09-10 06:12:56 +08:00
chore(style): allow case declarations and ban var
(#987)
* chore(style): allow case declarations * chore(style): ban `var` and prefer `const`
This commit is contained in:
@@ -110,7 +110,7 @@ class UserEditPage extends React.Component {
|
||||
updateUserField(key, value) {
|
||||
value = this.parseUserField(key, value);
|
||||
|
||||
let user = this.state.user;
|
||||
const user = this.state.user;
|
||||
user[key] = value;
|
||||
this.setState({
|
||||
user: user,
|
||||
@@ -583,7 +583,7 @@ class UserEditPage extends React.Component {
|
||||
}
|
||||
|
||||
submitUserEdit(willExist) {
|
||||
let user = Setting.deepCopy(this.state.user);
|
||||
const user = Setting.deepCopy(this.state.user);
|
||||
UserBackend.updateUser(this.state.organizationName, this.state.userName, user)
|
||||
.then((res) => {
|
||||
if (res.msg === "") {
|
||||
|
Reference in New Issue
Block a user