mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-06 17:33:18 +00:00
fix org department add member (#6686)
This commit is contained in:
@@ -21,17 +21,15 @@ class AddMemberDialog extends React.Component {
|
||||
selectedOption: null,
|
||||
errMessage: '',
|
||||
};
|
||||
this.Options = [];
|
||||
}
|
||||
|
||||
handleSelectChange = (option) => {
|
||||
this.setState({ selectedOption: option });
|
||||
this.Options = [];
|
||||
};
|
||||
|
||||
handleSubmit = () => {
|
||||
if (!this.state.selectedOption) return;
|
||||
const email = this.state.selectedOption.email;
|
||||
const email = this.state.selectedOption[0].email;
|
||||
this.refs.orgSelect.clearSelect();
|
||||
this.setState({ errMessage: [] });
|
||||
seafileAPI.orgAdminAddGroupMember(orgID, this.props.groupID, email).then((res) => {
|
||||
|
Reference in New Issue
Block a user