Remove function call and closure

pull/10616/head
Alex P 2017-12-04 14:30:16 -08:00
parent ab6f029ea0
commit c4c6ad6974
1 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ class OrganizationsTableRow extends Component {
}
}
handleChangeCurrentOrganization = () => async () => {
handleChangeCurrentOrganization = async () => {
const {router, links, meChangeOrganization, organization} = this.props
await meChangeOrganization(links.me, {organization: organization.id})
@ -138,7 +138,7 @@ class OrganizationsTableRow extends Component {
</button>
: <button
className="btn btn-sm btn-default"
onClick={this.handleChangeCurrentOrganization()}
onClick={this.handleChangeCurrentOrganization}
>
<span className="icon shuffle" /> Switch to
</button>}