fix hound

This commit is contained in:
zmagod 2017-10-18 08:42:48 +02:00
parent 3179a7abf5
commit 6a5bafd07b

View file

@ -61,16 +61,15 @@ class InviteUsersModal extends Component<Props, State> {
handleInputChange(inputTags: Array<string>): void { handleInputChange(inputTags: Array<string>): void {
if (inputTags.length > 0) { if (inputTags.length > 0) {
(this: any).setState({ inputTags: inputTags, inviteUserButtonDisabled: false }); (this: any).setState({ inputTags, inviteUserButtonDisabled: false });
} else { } else {
(this: any).setState({ inputTags: inputTags, inviteUserButtonDisabled: true }); (this: any).setState({ inputTags, inviteUserButtonDisabled: true });
} }
} }
inviteAs(role: number): void { inviteAs(role: number): void {
inviteUsersToTeam(role, this.state.inputTags, this.props.team.id) inviteUsersToTeam(role, this.state.inputTags, this.props.team.id)
.then(response => { .then(response => {
console.log(response);
(this: any).setState({ (this: any).setState({
inviteResults: response, inviteResults: response,
showInviteUsersResults: true showInviteUsersResults: true