Skip to content

Commit

Permalink
fix eslint warnings (#5902)
Browse files Browse the repository at this point in the history
  • Loading branch information
likesclever authored Jan 18, 2024
1 parent 3cb49a6 commit d08f058
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions frontend/src/pages/org-admin/org-users-search-users.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ class OrgUsersSearchUsersResult extends React.Component {
OrgUsersSearchUsersResult.propTypes = {
toggleDelete: PropTypes.func.isRequired,
orgUsers: PropTypes.array.isRequired,
changeStatus: PropTypes.func.isRequired,
};

class OrgUsersSearchUsers extends Component {
Expand Down Expand Up @@ -160,7 +161,7 @@ class OrgUsersSearchUsers extends Component {
}
};

changeStatus= (email, isActive) => {
changeStatus = (email, isActive) => {
seafileAPI.orgAdminChangeOrgUserStatus(orgID, email, isActive).then(res => {
let users = this.state.orgUsers.map(item => {
if (item.email == email) {
Expand All @@ -174,7 +175,7 @@ class OrgUsersSearchUsers extends Component {
let errMessage = Utils.getErrorMsg(error);
toaster.danger(errMessage);
});
}
};

render() {
const { query, isSubmitBtnActive } = this.state;
Expand Down

0 comments on commit d08f058

Please sign in to comment.