mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-11 09:26:37 +08:00
fix hound
This commit is contained in:
parent
3179a7abf5
commit
6a5bafd07b
1 changed files with 2 additions and 3 deletions
|
@ -61,16 +61,15 @@ class InviteUsersModal extends Component<Props, State> {
|
|||
|
||||
handleInputChange(inputTags: Array<string>): void {
|
||||
if (inputTags.length > 0) {
|
||||
(this: any).setState({ inputTags: inputTags, inviteUserButtonDisabled: false });
|
||||
(this: any).setState({ inputTags, inviteUserButtonDisabled: false });
|
||||
} else {
|
||||
(this: any).setState({ inputTags: inputTags, inviteUserButtonDisabled: true });
|
||||
(this: any).setState({ inputTags, inviteUserButtonDisabled: true });
|
||||
}
|
||||
}
|
||||
|
||||
inviteAs(role: number): void {
|
||||
inviteUsersToTeam(role, this.state.inputTags, this.props.team.id)
|
||||
.then(response => {
|
||||
console.log(response);
|
||||
(this: any).setState({
|
||||
inviteResults: response,
|
||||
showInviteUsersResults: true
|
||||
|
|
Loading…
Reference in a new issue